IMHOTEP Framework
All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Config.cs
1 using UnityEngine;
2 using System.Collections;
3 
4 public class Config : MonoBehaviour {
5 
6  public bool skipAnimations = false;
7 
8  static public Config instance { private set; get; }
9 
10  public Config()
11  {
12  if (instance != null) {
13  throw(new System.Exception ("Error: Cannot create more than one instance of Config!"));
14  }
15  instance = this;
16  loadFromCommandLine ();
17  }
18 
19  void loadFromCommandLine()
20  {
21  string[] args = System.Environment.GetCommandLineArgs ();
22 
23  foreach (string arg in args) {
24  if (arg == "--skipAnimations") {
25  skipAnimations = true;
26  }
27  }
28  }
29 
30  void loadFromFile()
31  {
32  // TODO
33  }
34 
35  void saveToFile()
36  {
37  // TODO
38  }
39 }
Definition: Config.cs:4