示例#1
0
    public bool IsPhase(MainCanvas.Phase phase)
    {
        if (this.phase == phase)
        {
            return(true);
        }

        return(false);
    }
示例#2
0
    public void ChangePhase(MainCanvas.Phase phase)
    {
        this.phase = phase;

        switch (this.phase)
        {
        case MainCanvas.Phase.Title:
        {
            this.SetupTitle();
            break;
        }

        case MainCanvas.Phase.PlayMode:
        {
            this.SetupPlayMode();
            this.tapSE.PlayOneShot(this.tapSE.clip);
            break;
        }

        case MainCanvas.Phase.GoodBye:
        {
            this.SetupGoodBye();
            break;
        }

        case MainCanvas.Phase.Pause:
        {
            this.SetupPause();
            this.tapSE.PlayOneShot(this.tapSE.clip);
            break;
        }

        case MainCanvas.Phase.Play:
        {
            this.SetupPlay();
            this.tapSE.PlayOneShot(this.tapSE.clip);
            break;
        }

        case MainCanvas.Phase.InitPlay:
        {
            this.SetupInitPlay();
            break;
        }

        case MainCanvas.Phase.InitOnline:
        {
            this.SetupInitOnline();
            break;
        }
        }
    }