// PlayerDie internal static void PlayerDie() { MenuElements.SetActive(true); #if TOUCH_CONTROLS_KIT TCKInput.SetActive(false); #endif }
// Pause public static void Pause() { if (!PlayerCharacter.Instance.isAlive) { return; } gameIsPaused = !gameIsPaused; Time.timeScale = gameIsPaused ? 0f : 1f; MenuElements.SetActive(gameIsPaused); // if (GameSettings.ShowHud) { HudElements.SetActive(!gameIsPaused); } #if TOUCH_CONTROLS_KIT TCKInput.SetActive(!gameIsPaused); #endif }
// Awake internal void AwakeMENU() { instance = this; //GameSettings.UpdateMixerVolumes(); }
// Start void Start() { GameSettings.UpdateMixerVolumes(); MenuElements.SetActive(false); }