Exemple #1
0
        protected virtual void Awake()
        {
            Instance = this;

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

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

            Instance = this;

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

            SubscribeToEvents();
        }