Beispiel #1
0
 private void OnEnable()
 {
     _input.Enable();
     _option = DeathMenuOptions.TryAgain;
     tryAgainImage.transform.localScale = new Vector3(1.1f, 1.1f, 1);
     tryAgainImage.color = Color.black;
     tryAgainBgAnim.SetTrigger("enable");
     if (!_controller.scannerSword.HoldingSword() && _controller.scannerSword.SwordUnlocked())
     {
         _controller.scannerSword.SwordRecovered();
     }
     _controller.scannerSword.LockSword();
     GameManager.Instance.Respawn();
     Time.timeScale = 0;
 }
Beispiel #2
0
    private void ItemDown()
    {
        switch (_option)
        {
        case DeathMenuOptions.TryAgain:
            ButtonNavigationSound();
            tryAgainImage.transform.localScale = new Vector3(1, 1, 1);
            tryAgainImage.color = Color.white;
            tryAgainBgAnim.SetTrigger("disable");
            mainMenuImage.transform.localScale = new Vector3(1.1f, 1.1f, 1);
            mainMenuImage.color = Color.black;
            mainMenuBgAnim.SetTrigger("enable");
            _option = DeathMenuOptions.MainMenu;
            break;

        case DeathMenuOptions.MainMenu:
            break;
        }
    }