Ejemplo n.º 1
0
 //restarts the instance
 public static void RestartInstance()
 {
     GameInstance = new GameObject();
 }
Ejemplo n.º 2
0
 //sets the instance to an instance
 public static void SetInstance(GameObject instance)
 {
     GameInstance = instance;
 }
Ejemplo n.º 3
0
 //returns the game instance
 public static GameObject GetInstance()
 {
     if (GameInstance == null)
         GameInstance = new GameObject();
     return GameInstance;
 }