예제 #1
0
 private void OnDestroy()
 {
     if (Instance == this)
     {
         Instance = null;
     }
 }
예제 #2
0
파일: MsfUi.cs 프로젝트: tteogi/Node_Editor
        protected virtual void Awake()
        {
            Instance = this;

            DialogBox = DialogBox ?? FindObjectOfType <DialogBoxUi>();
            Loading   = Loading ?? FindObjectOfType <LoadingUi>();

            SubscribeToEvents();
        }
예제 #3
0
        protected virtual void Awake()
        {
            if (Msf.Args.DestroyUi)
            {
                Destroy(gameObject);
                return;
            }

            Instance = this;

            DialogBox = DialogBox ?? FindObjectOfType <DialogBoxUi>();
            Loading   = Loading ?? FindObjectOfType <LoadingUi>();

            SubscribeToEvents();
        }