Give more live to the collectables on your game!!
Objective: create a spin animation for the collectable prefab.
First step is to add an animator component to the collectable in the scene.
We have to create a new animator controller and a new animation, the animator controller has to be assigned in the inspector and the animation has to be added to the animator controller.
Coins, Gems and More….
Objective: download an asset and create a collectable for your game.
For this example I downloaded a 3d battery model for my game and added it to the scene.
With the model in the scene we have to add a collider component to detect the player, in this case the capsule collider is ideal for this asset.