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(); }
void Start() { _curState = _norGameState; _curState.enterState(); Debug.Log(_arrWidth); }