I will demonstrate a delay timer & I will showing the results in the console.

First off, create an empty game object and call it Timer.

Now create a C# script — call it whatever you’d like — I’m calling mine ‘Clock’.

In the script, I’ll start by creating an IEnumerator called Delay.

--

--

Objective: Create a rotating effect for our Astroid.

After placing the Astroid into our scene, make it prefab and create a new script for it. I’m calling mine simply, ‘Astroid’.

To make it rotate, let’s check out how to do this by reviewing the Unity Documentation.

--

--

Objective: Play a sequence of explosion sprites when our enemy has been destroyed in the game.

First we need to create a new animation and add the explosion sprite sequence to our enemy prefab. If we look in the Animator window we can see that we have a new anim state for our enemy that is to be controlled by our explosion sequence.

--

--

Chelsea Cruise

Chelsea Cruise

Unity Developer, Software Engineer, Game Designer, Graphic Artist