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

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

            Init();
        }
예제 #2
0
파일: UIUpdater.cs 프로젝트: CLJoker/Heat
 private void Awake()
 {
     if (UIUpdater.singleton == null)
     {
         singleton = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }