static void PlayModeStateChanged(PlayModeStateChange state) { switch (state) { case PlayModeStateChange.ExitingEditMode: { EditorEvent?.Invoke(Event.EnteringPlayMode, null); } break; case PlayModeStateChange.EnteredPlayMode: { EditorEvent?.Invoke(Event.EnteredPlayMode, null); } break; case PlayModeStateChange.ExitingPlayMode: { EditorEvent?.Invoke(Event.ExitingPlayMode, null); } break; case PlayModeStateChange.EnteredEditMode: { EditorEvent?.Invoke(Event.ExitedPlayMode, null); } break; } }
public void Invoke(EditorEvent cb, Event e) { cb?.Invoke(e); }
static void AssemblyReloadFinished() { EditorEvent?.Invoke(Event.AssemblyReloadFinished, null); }
static void AssemblyReloadStarted() { EditorEvent?.Invoke(Event.AssemblyReloadStarted, null); }
static void AssemblyCompilationFinished(string assembly, CompilerMessage[] messages) { EditorEvent?.Invoke(Event.AssemblyCompilationFinished, Path.GetFileName(assembly)); }
static void AssemblyCompilationStarted(string assembly) { EditorEvent?.Invoke(Event.AssemblyCompilationStarted, Path.GetFileName(assembly)); }
static void ScriptCompilationFinished(object obj) { EditorEvent?.Invoke(Event.ScriptCompilationFinished, null); }