Creating Collectable Objects

확인 완료한 버전: 5

-

난이도: 초급

Creating and placing the "Pick Up" collectables.

Creating Collectable Objects

초급 Roll-a-ball tutorial

트랜스크립트

Rotator

Code snippet

using UnityEngine;
using System.Collections;

public class Rotator : MonoBehaviour {

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

관련 문서