Beispiel #1
0
        internal static void Init()
        {
            RemoteGame remoteGame = (RemoteGame)EditorWindow.GetWindow(typeof(RemoteGame));

            if (EditorApplication.isPlaying && !remoteGame.IsRunning())
            {
                remoteGame.id = ScriptableSingleton <NScreenManager> .instance.GetNewId();

                remoteGame.StartGame();
            }
        }
Beispiel #2
0
        internal static void Init()
        {
            RemoteGame window = (RemoteGame)EditorWindow.GetWindow(typeof(RemoteGame));

            if (!EditorApplication.isPlaying || window.IsRunning())
            {
                return;
            }
            window.id = ScriptableSingleton <NScreenManager> .instance.GetNewId();

            window.StartGame();
        }