예제 #1
0
    private void Awake()
    {
        if (current != null && current != this)
        {
            Destroy(this);
            return;
        }

        current = this;

        _nextLevelBtn.gameObject.SetActive(false);
        _restartBtn.gameObject.SetActive(false);
        _loseImage.enabled             = false;
        _winImage.enabled              = false;
        current._mainCanvasGroup.alpha = 0f;
        current._menuCanvasGroup.alpha = 0f;

        activateMenuEvent = new UnityEvent <int, bool>();
        activateMenuEvent.AddListener(ActivateMenu);
    }
 public void ShowLevelEndMenu()
 {
     DisablePlayerInput();
     Pause();
     LevelEndMenu.SetActive(true);
 }