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