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()); }
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(); }); }
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); }
public void Enter(string sceneName) { _curtain.Show(); _sceneLoader.Load(sceneName, OnLoaded); }