I have added spin the crashed planes broken propeller as an extra feature of the starting area.
Below is the simple C# code I used to add the spin to the propeller:
using UnityEngine;
using System.Collections;
public class Propellerspin : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.Rotate(Vector3.up * 3);
}
}
No comments:
Post a Comment