Example #1
0
        public static void CreateWindow()
        {
            EventsExplorer window = GetWindow <EventsExplorer>();

            window.title = "Events Explorer Window";
            //EventsChecker.SetExplorer(window);
        }
Example #2
0
//#endif
        //Проверка события что оно соотвествует условиям.
        public static void CheckEvent(EventsCheckStage stage, SimpleEvent evnt, UnityEngine.Object receiver)
        {
//#if UNITY_EDITOR
            explorer = EditorWindow.GetWindow <EventsExplorer>();
            if (explorer == null)
            {
                return;
            }
            bool result = explorer.EventToPause;

            if (result)
            {
                bool check = explorer.Check(stage, evnt, receiver);
                if (check)
                {
                    EditorApplication.isPaused = true;
                }
//#endif
            }
        }
Example #3
0
//#if UNITY_EDITOR
        public static void SetExplorer(EventsExplorer window)
        {
            explorer = window;
        }