private void Awake() { DontDestroyOnLoad(gameObject); Instance = this; #if DEBUG EnableDeveloperFeatures(); #endif }
private void Awake() { DontDestroyOnLoad(gameObject); Instance = this; // This makes sure that even if the game is minimized, it will still receive and send packets Application.runInBackground = true; // make sure chat window starts out closed //InGameChatAssetLoader.ChatManager()?.Toggle(forceClosed: true); }