Example #1
0
        private void OnQuickSkirmishButtonClicked()
        {
            ResetPatchValues();
            MainMenu mainMenu = GameObject.Find("uixPrfPanl_mainMenu-Screen_V3(Clone)").GetComponent <MainMenu>();

            mainMenu.ReceiveButtonPress("Back");
            Main.Logger.Log("[OnQuickSkirmishButtonClicked] Clicked");
            LoadingCurtain.Show();
            UnityGameInstance.Instance.StartCoroutine(WaitForInitialCurtainToShow());
        }
Example #2
0
 private void Start()
 {
     NextLevelButton.onClick.AddListener(() =>
     {
         TimeControl.Instance.SpeedUp();
         TimeControl.Instance.RunGame();
         loadingCurtain.Show();
         loadingCurtain.Hide();
         player.ResetHealth();
         player.Shooter.SetReload(1.5f);
         HUD.UpdateHealthBar();
         levelContainer.currentLevel.Started?.Invoke(levelContainer.currentLevel);
         Close();
     });
 }
Example #3
0
        private void Start()
        {
            ResumeButton.onClick.AddListener(() =>
            {
                Close();
                TimeControl.Instance.RunGame();
            });

            SettingsButton.onClick.AddListener(settingPopUp.Open);

            RestartButton.onClick.AddListener(() =>
            {
                TimeControl.Instance.RunGame();
                loadingCurtain.Show();
                PlayerPrefs.DeleteAll();
                Close();
                sceneLoader.Load("Level", loadingCurtain.Hide);
            });

            QuitButton.onClick.AddListener(Application.Quit);
        }
Example #4
0
 public void Enter(string sceneName)
 {
     _curtain.Show();
     _sceneLoader.Load(sceneName, OnLoaded);
 }