コード例 #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();
 }