public void SetState(WaveState NewState)
 {
     if (CurrentState != null)
     {
         CurrentState.Exit();
     }
     CurrentState = NewState;
     CurrentState.Enter();
 }
 public static void SetTargetState(WaveState TargetState)
 {
     self.TargetState = TargetState;
 }