示例#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);
     }
 }