13 lines
249 B
C#
13 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);
|
|||
|
}
|
|||
|
}
|