holopy3/Assets/Hologram Pyramid/Scripts/Earth.cs

13 lines
249 B
C#
Raw Permalink Normal View History

2020-12-10 14:25:12 +00:00
using UnityEngine;
using System.Collections;
public class Earth : MonoBehaviour {
[Header("Settings")]
public float Speed = 1.0f;
void Update () {
this.transform.Rotate(transform.position.x, Speed, transform.position.z);
}
}