示例#1
0
    public void changeStage(GameStage stage)
    {
        if (_curGameStage == stage)
        {
            return;
        }

        _curGameStage = stage;

        _curState.leaveState();

        switch (stage)
        {
        case GameStage.MOVE:
            _curState = _moveGameState;
            break;

        case GameStage.NOR:
            _curState = _norGameState;
            Debug.Log("stage change check");
            checkDel();
            break;

        default:
            _curState = _norGameState;
            break;
        }

        _curState.enterState();
    }
示例#2
0
 void Start()
 {
     _curState = _norGameState;
     _curState.enterState();
     Debug.Log(_arrWidth);
 }