Пример #1
0
		}
		public void AddState(GameState a_gs)
		{
			a_gs.IsExiting = false;
			a_gs.LoadContent ();
			GameStates.Add (a_gs);
			//foreach (var i in GameStates)
			//	Console.WriteLine (string.Format ("gs - {0}", i.ID));
			//Console.WriteLine("---------------");
Пример #2
0
		}
		public void RemoveState(GameState a_gs)
		{
			a_gs.UnloadContent ();
			GameStates.Remove (a_gs);
			GameStatesToUpdate.Remove (a_gs);
Пример #3
0
		}
		public GameState State (GameState a_gs)
		{

			foreach (GameState gs in GameStates) {
				if (gs.ID.ToLower ().Equals (a_gs.ID.ToLower ()))
					return gs;
			}
			return null;