Roll-a-Ball: 5.2 Rotate the PickUp GameObject
In this tutorial, you’ll:

– Create a PickUp GameObject for the player to collect
– Write a script to rotate the collectible
– Turn the PickUp GameObject into a Prefab
– Instantiate the Prefab around your play area

For the full course on Unity learn to go:

View on YouTube