Creating Collectable Objects

Checked with version: 5

-

Difficulty: Beginner

Creating and placing the "Pick Up" collectables.

Creating Collectable Objects

Beginner Roll-a-ball tutorial

Transcripts

Rotator

Code snippet

using UnityEngine;
using System.Collections;

public class Rotator : MonoBehaviour {

    void Update () 
    {
        transform.Rotate (new Vector3 (15, 30, 45) * Time.deltaTime);
    }
}

Related documentation