Beispiel #1
0
        private void Start()
        {
            updater = UIUpdater.singleton;
            if (updater != null)
            {
                updater.elements.Add(this);
            }

            Init();
        }
Beispiel #2
0
 private void Awake()
 {
     if (UIUpdater.singleton == null)
     {
         singleton = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }