Example #1
0
    void Game()
    {
        switch (mode)
        {
        case MODE.TITLE:
            TitleSelectInput();
            DispTitle();
            break;

        case MODE.GAME:
            if (Input.GetKeyDown(KeyCode.Space))
            {
                canvas.FadeOut();
                GameEnd();
                return;
            }
            if (robCastle.CastleHp < 0 || humCastle.CastleHp < 0)
            {
                GameEnd();
                canvas.FadeOut();
            }
            break;

        case MODE.GALLERY:
            GallerySelectInput();
            DispGallery();
            break;

        case MODE.OPTION:
            break;

        case MODE.NUM:
            break;

        default:
            break;
        }
    }