internal static void Init() { RemoteGame remoteGame = (RemoteGame)EditorWindow.GetWindow(typeof(RemoteGame)); if (EditorApplication.isPlaying && !remoteGame.IsRunning()) { remoteGame.id = ScriptableSingleton <NScreenManager> .instance.GetNewId(); remoteGame.StartGame(); } }
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(); }