In this video, you will learn how to make a simple animation that will be used every time your player is collecting coins. Before adding an animation, you will need to learn how to use particle system component in Unity. This is very important because it defines the correct implementation of a particle effect for your coin.
If you haven't added a coin yet, it is time to drag the assets and make a spinning animation by dragging four sprites at once. Then you should add a C# script that will make sure your player will be able to collect coins, but it will be for collision detection. The script should contain the part for destroying the coin after a short time, which comes after the particle system ends.
You can also download the full script files for game development on GitHub: http://github.com/kozmobotgames
Support the Creator of Kozmobot on the social networks!
CHECK OUT MY WEBSITE: http://kozmobot.com
INSTAGRAM: / kozmobot.channel
TIKTOK: / kozmobot.channel