void Awake() { if (Instance != null && Instance != this) { GameObject.Destroy(this.gameObject); } Instance = this; }
void OnDestroy() { Instance = null; }