public static void Init() { ChatMapperConverter window = EditorWindow.GetWindow(typeof(ChatMapperConverter), false, "Chat Mapper") as ChatMapperConverter; window.minSize = new Vector2(320, 240); window.LoadPrefs(); }
private void RunChatMapperConverter() { bool alreadyOpen = ChatMapperConverter.IsOpen; if (!alreadyOpen) { ChatMapperConverter.Init(); } ChatMapperConverter.Instance.ConvertChatMapperProjects(); if (!alreadyOpen) { ChatMapperConverter.Instance.Close(); } }
public void OnDisable() { SavePrefs(); instance = null; }
public void OnEnable() { instance = this; LoadPrefs(); }