Exemple #1
0
    private void HandleStepChange(GameManager.Step step)
    {
        switch (step)
        {
        case GameManager.Step.Intro:
            Invoke("GoToPlayStep", 1.0f);
            break;

        case GameManager.Step.Play:
            break;

        case GameManager.Step.GameOver:
            Time.timeScale = 0.0f;
            break;

        default:
            throw new ArgumentOutOfRangeException("step", step, null);
        }
    }
Exemple #2
0
    private void HandleStepChange(GameManager.Step step)
    {
        switch (step)
        {
        case GameManager.Step.Intro:
            HandleIntroStep();
            break;

        case GameManager.Step.Play:
            HandlePlayStep();
            break;

        case GameManager.Step.GameOver:
            HandleGameOverStep();
            break;

        default:
            throw new ArgumentOutOfRangeException("step", step, null);
        }
    }