public void ChangeState(CellState nextState) { currentState.OnExitState(this); currentState = nextState; currentState.OnEnterState(this); }
private void Start() { currentState = new InactiveCell(); currentState.OnEnterState(this); }