예제 #1
0
        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();
            }
        }
예제 #3
0
 public void OnDisable()
 {
     SavePrefs();
     instance = null;
 }
예제 #4
0
 public void OnEnable()
 {
     instance = this;
     LoadPrefs();
 }
예제 #5
0
 public void OnEnable()
 {
     instance = this;
     LoadPrefs();
 }
예제 #6
0
 public void OnDisable()
 {
     SavePrefs();
     instance = null;
 }