private static void RunOnce() { EditorApplication.update -= RunOnce; if (EditorGameDataSaveLoad.LoadIfNotLoadedFromEditor()) { Debug.Log("[RPGAIO] Loading Game Data"); } }
public static void Init() { // Get existing open window or if none, make a new one: var window = (Rme_Main)GetWindow(typeof(Rme_Main)); //window.maxSize = new Vector2(1050, 500); window.titleContent = new GUIContent("RPG AIO"); window.minSize = new Vector2(950.1F, 530.1F); window.position = new Rect(200, 200, 950.1F, 530.1F); Window = window; Pages = Enum.GetValues(typeof(CurrentPage)) as CurrentPage[]; EditorGameDataSaveLoad.LoadIfNotLoadedFromEditor(); }
public void OnEnable() { Window = this; EditorGameDataSaveLoad.LoadIfNotLoadedFromEditor(); }