示例#1
0
        private void Awake()
        {
            uiUpdater = UIUpdater.singleton;

            if (uiUpdater != null)
            {
                uiUpdater.elements.Add(this);
            }
        }
示例#2
0
 private void Awake()
 {
     if (UIUpdater.singleton == null)
     {
         singleton = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }