Example #1
0
 public static GameState getInstance(bool createIfNotExistent = true)
 {
     if (mInstance == null && createIfNotExistent)
     {
         mInstance = new GameState();
     }
     return mInstance;
 }