Ejemplo n.º 1
0
    public void NextPhase()
    {
        int phaseCount = (int)nowPhase;

        if (phaseCount < (int)Phase.ResultPhase)
        {
            phaseCount++;
        }
        else
        {
            phaseCount = 0;
        }
        nowPhase = (Phase)phaseCount;

        switch (nowPhase)
        {
        case Phase.StartPhase:
            pointManager.PMInit();
            timeManager.TMInit();
            enemySpowner.SpownerInit();
            GameObject.Find("InfoBoad").GetComponent <InfoBoad>().WriteInfo(InfoBoad.ruleText);
            break;

        case Phase.CountDown:
            Destroy(GameObject.Find("InfoBoad").gameObject);
            infoUI.CountDown();
            break;

        case Phase.GamePhase:
            break;

        case Phase.ResultPhase:
            infoUI.SayEnd();
            pointManager.AppearResult();
            break;
        }
    }