Example #1
0
 public void ChangeState(BlockState newState)
 {
     CurrentState.Exit();
     CurrentState = newState;
     CurrentState.Enter();
 }
Example #2
0
 public void Initialize(BlockState startingState)
 {
     CurrentState = startingState;
     CurrentState.Enter();
 }