static void Init() { // Get existing open window or if none, make a new one: GameEditor window = (GameEditor)EditorWindow.GetWindow(typeof(GameEditor)); window.Show(); }
static void Init() { // Get existing open window or if none, make a new one: GameEditor window = (GameEditor)EditorWindow.GetWindow(typeof(GameEditor)); window.devMode = bool.Parse(PlayerPrefs.GetString(Constants.cst_DeveloperMode, "false")); window.Show(); }
static void EditGame() { TextAsset file = Selection.activeObject as TextAsset; if (file != null) { GameEditor window = EditorWindow.GetWindow <GameEditor>("Game Editor"); window.SetFile(file); window.Show(); } }
static void ShowMyWindow() { GameEditor window = EditorWindow.GetWindow <GameEditor>(); window.Show(); }