protected void Awake() { if (_instance != null && _instance != this) { Destroy(this); throw new Exception("An instance of EarthManager already exists."); } else { _instance = this; } }
protected void OnDestroy() { _instance = null; }
void Awake() { S = this; }