示例#1
0
 void playerDead()
 {
     currentPhase = null;
     //uiPanelGameOver.SetActive(true);
     messageToShow = uiPanelGameOver;
     StartCoroutine(SwitchSceneToMenu());
 }
示例#2
0
 void endGame()
 {
     endgame      = true;
     currentPhase = null;
     EventManager.TriggerEvent("EndGame");
     messageToShow = uiPanelVictory;
     //uiPanelVictory.SetActive(true);
 }
示例#3
0
    public void goToAdaptationPhase()
    {
        if (currentPhase != null)
        {
            currentPhase.EndPhase();
        }
        currentPhase = adaptationPhase;
        currentPhase.InitPhase();

        OptionsManager.Instance.changePhase("AdaptationPhase");

        EventManager.TriggerEvent("OnAdaptationPhase");
        Debug.Log("ADAPTATION PHASE");
    }
示例#4
0
    public void goToSurvivalPhase()
    {
        if (currentPhase != null)
        {
            currentPhase.EndPhase();
        }
        currentPhase = survivalPhase;
        currentPhase.InitPhase();

        OptionsManager.Instance.changePhase("SurvivalPhase");

        EventManager.TriggerEvent("OnSurvivalPhase");
        Debug.Log("SURVIVAL PHASE");
    }
示例#5
0
    public void goToCounterPhase()
    {
        if (currentPhase != null)
        {
            currentPhase.EndPhase();
        }
        currentPhase = counterPhase;
        currentPhase.InitPhase();

        OptionsManager.Instance.changePhase("CounterPhase");

        EventManager.TriggerEvent("OnCounterPhase");

        Debug.Log("COUNTER PHASE");
    }
示例#6
0
    public void goToSurvivalPhase()
    {
        if (currentPhase != null)
        {
            currentPhase.EndPhase();
        }

        //ici car c'est l'adaptation phase qui declenche difficulty++ dans EndPhase
        if (endgame)
        {
            return;
        }

        currentPhase = survivalPhase;
        currentPhase.InitPhase();

        OptionsManager.Instance.changePhase("SurvivalPhase");

        EventManager.TriggerEvent("OnSurvivalPhase");
        Debug.Log("SURVIVAL PHASE");
    }