コード例 #1
0
    public void Init()
    {
        this.config    = GameConfig.CreateDefaultGameConfig();
        this.blockPool = new BlockPool(this.sampleBlock, 100);

        this.gameState     = GameState.Play;
        this.playState     = GamePlayState.Prepare;
        this.blockStack    = new List <Block>();
        this.blockStopped  = new List <Block>();
        this.currentHeight = 0;
        this.topBlock      = null;


        StartPlayGame();
    }