holopy3/Assets/Hologram Pyramid/Scripts/Earth.cs
2020-12-10 15:25:12 +01:00

12 lines
249 B
C#

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);
}
}