예제 #1
0
파일: Engine.cs 프로젝트: ericrrichards/fps
 public void RemoveState(State state)
 {
     _states.Remove(state);
 }
예제 #2
0
파일: Engine.cs 프로젝트: ericrrichards/fps
 public void AddState(State state, bool change)
 {
     _states.Add(state);
     if (!change) return;
     if (CurrentState != null) {
         CurrentState.Close();
     }
     CurrentState = _states.Last();
     CurrentState.Load();
 }