# How to make a game object rotate around its Axis in Unity? [duplicate]

Ok So i making this simple platformer with a ball. So basically i have A pickup / Collectible that is a Coin. I want the coin till it gets collected by the ball to keep rotating around it axis . Also I know I could do this by adding a Animation but I would prefer doing it Via A C# Script. So please if anybody knows how then Tell me. Thanks

## marked as duplicate by Alexandre Vaillancourt♦, MAnd, MichaelHouse♦Apr 8 '16 at 16:18

float speed =5f;