Exemplo n.º 1
0
        private void Awake()
        {
            DontDestroyOnLoad(gameObject);
            Instance = this;

#if DEBUG
            EnableDeveloperFeatures();
#endif
        }
Exemplo n.º 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);
        }