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