예제 #1
0
파일: UIElement.cs 프로젝트: arkii1/Heist
        private void Awake()
        {
            updater = UIUpdater.singleton;

            if (updater != null)
            {
                updater.elements.Add(this);
            }
        }
예제 #2
0
 private void Awake()
 {
     if (singleton == null)
     {
         singleton = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }