示例#1
0
    public void goToAdaptationPhase()
    {
        if (currentPhase != null)
        {
            currentPhase.EndPhase();
        }
        currentPhase = adaptationPhase;
        currentPhase.InitPhase();

        OptionsManager.Instance.changePhase("AdaptationPhase");

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

        OptionsManager.Instance.changePhase("SurvivalPhase");

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

        OptionsManager.Instance.changePhase("CounterPhase");

        EventManager.TriggerEvent("OnCounterPhase");

        Debug.Log("COUNTER PHASE");
    }
示例#4
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");
    }