//sets the instance to an instance //restarts the instance public static void RestartInstance() { _gameInstance = new GameObject(); }
public static void SetInstance(GameObject instance) { _gameInstance = instance; }
public static GameObject GetInstance() { return _gameInstance ?? (_gameInstance = new GameObject()); }