Esempio n. 1
0
        private void Start()
        {
            updater = UIUpdater.singleton;

            if (updater != null)
            {
                updater.elements.Add(this);
            }

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