Animating Sprites in Unity
Using Unity Animation System
Objective: Animate the triple shot powerup
Currently in the game we have a triple shot powerup that allows the player to shoot a triple laser but it is just a simple sprite.
In order to animate the powerup we have to create an animation in the project window. It is gonna create an animation and an animator controller. These are the 2 elements to use the animation system in Unity.
Then we have to select Window > Animation > Animation to open the animation window. Once there you have to select the GameObject in the hierarchy, select the record button (the red one in the animation window), drag and drop the sprites for the animation and stop the recording.
And that is how you can do a basic animation in Unity. There are more options to control conditions, speed and modify property. For more information checkout the documentation below.
https://docs.unity3d.com/Manual/AnimationSection.html
https://learn.unity.com/tutorial/working-with-animations-and-animation-curves