private void Awake() { updater = UIUpdater.singleton; if (updater != null) { updater.elements.Add(this); } }
private void Awake() { if (singleton == null) { singleton = this; } else { Destroy(this.gameObject); } }