Exemplo n.º 1
0
        protected override void Start()
        {
            base.Start();

            var tipsUI = uiManager.GetUI <ITipsUI>();

            if (tipsUI is null || tipsUI.TipsCount == 0)
            {
                gameObject.SetActive(false);
            }
        }
        protected override void Start()
        {
            base.Start();

            var galleryUI = uiManager.GetUI <ICGGalleryUI>();

            if (galleryUI is null || galleryUI.CGCount == 0)
            {
                gameObject.SetActive(false);
            }
        }
Exemplo n.º 3
0
        protected override void OnButtonClick()
        {
            uiManager.GetUI <IPauseUI>()?.Hide();

            var saveLoadUI = uiManager.GetUI <ISaveLoadUI>();

            if (saveLoadUI is null)
            {
                return;
            }

            saveLoadUI.PresentationMode = SaveLoadUIPresentationMode.Save;
            saveLoadUI.Show();
        }
Exemplo n.º 4
0
        protected override void Awake()
        {
            base.Awake();

            uiManager      = Engine.GetService <IUIManager>();
            confirmationUI = uiManager.GetUI <IConfirmationUI>();
        }
        protected override void OnButtonClick()
        {
            var saveLoadUI = uiManager.GetUI <ISaveLoadUI>();

            if (saveLoadUI is null)
            {
                return;
            }

            var lastLoadMode = saveLoadUI.GetLastLoadMode();

            saveLoadUI.PresentationMode = lastLoadMode;
            saveLoadUI.Show();
        }
        protected override void Start()
        {
            base.Start();

            confirmationUI = uiManager.GetUI <IConfirmationUI>();
        }
Exemplo n.º 7
0
 protected override void OnButtonClick()
 {
     uiManager.GetUI <IPauseUI>()?.Hide();
     uiManager.GetUI <ISettingsUI>()?.Show();
 }
Exemplo n.º 8
0
 protected override void OnButtonClick() => uiManager.GetUI <IExternalScriptsUI>()?.Show();
 protected override void OnButtonClick() => uiManager.GetUI <ISettingsUI>()?.Show();