示例#1
0
        private void Awake()
        {
            DontDestroyOnLoad(gameObject);
            Instance = this;

#if DEBUG
            EnableDeveloperFeatures();
#endif
        }
示例#2
0
        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);
        }