示例#1
0
        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);
 }
示例#3
0
 static void AssemblyReloadFinished()
 {
     EditorEvent?.Invoke(Event.AssemblyReloadFinished, null);
 }
示例#4
0
 static void AssemblyReloadStarted()
 {
     EditorEvent?.Invoke(Event.AssemblyReloadStarted, null);
 }
示例#5
0
 static void AssemblyCompilationFinished(string assembly, CompilerMessage[] messages)
 {
     EditorEvent?.Invoke(Event.AssemblyCompilationFinished, Path.GetFileName(assembly));
 }
示例#6
0
 static void AssemblyCompilationStarted(string assembly)
 {
     EditorEvent?.Invoke(Event.AssemblyCompilationStarted, Path.GetFileName(assembly));
 }
示例#7
0
 static void ScriptCompilationFinished(object obj)
 {
     EditorEvent?.Invoke(Event.ScriptCompilationFinished, null);
 }