void Awake() { // Is the controlling app already in existance? if (GameObject.Find("App") == null) { Debug.Log("Creating temporary TUA_App"); Instantiate(AppPrefab); } if (Instance != null) { Debug.LogError("Multiple TUA_GameManager Instances exist!"); } Instance = this; }
void Awake() { // Is the controlling app already in existance? if (GameObject.Find("App") == null) { Debug.Log("Creating temporary TUA_App"); Instantiate(AppPrefab); } if (Instance != null) { Debug.LogError("Multiple TUA_GameManager Instances exist!"); } Instance = this; // Disable screen dimming Screen.sleepTimeout = SleepTimeout.NeverSleep; }