public static void CreateWindow() { EventsExplorer window = GetWindow <EventsExplorer>(); window.title = "Events Explorer Window"; //EventsChecker.SetExplorer(window); }
//#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 } }
//#if UNITY_EDITOR public static void SetExplorer(EventsExplorer window) { explorer = window; }