Esempio n. 1
0
 public static StateManager GetInstance()
 {
     if (instance == null) instance = new StateManager();
     return instance;
 }
Esempio n. 2
0
 /// <summary>
 /// Gets a path item by selected game!
 /// </summary>
 /// <param name="game">The game you want to have the pathitem from.</param>
 /// <returns>The path item!</returns>
 public PathItem GetPathByGame(StateManager.SelectedGame game)
 {
     for (int i = 0; i < this.paths.Length; i++)
     {
         PathItem path = this.paths.ElementAt(i);
         if (path.game == game) return path;
     }
     return null;
 }