// Token: 0x0600019B RID: 411 RVA: 0x0000ECE4 File Offset: 0x0000CEE4 static GizmoManager() { EditorApplication.hierarchyWindowChanged = (EditorApplication.CallbackFunction)Delegate.Combine(EditorApplication.hierarchyWindowChanged, new EditorApplication.CallbackFunction(GizmoManager.HierarchyChange)); if (!Application.isPlaying) { GizmoManager.UpdateAllGizmos(); EditorApplication.playmodeStateChanged = (EditorApplication.CallbackFunction)Delegate.Combine(EditorApplication.playmodeStateChanged, new EditorApplication.CallbackFunction(GizmoManager.UpdateAllGizmos)); } }
public static void HierarchyChange() { BehaviorManager instance = BehaviorManager.instance; if (Application.isPlaying) { if (instance != null) { instance.onEnableBehavior = new BehaviorManager.BehaviorManagerHandler(GizmoManager.UpdateBehaviorManagerGizmos); } } else if (GizmoManager.currentScene != EditorApplication.currentScene) { GizmoManager.currentScene = EditorApplication.currentScene; GizmoManager.UpdateAllGizmos(); } }
// Token: 0x0600019E RID: 414 RVA: 0x0000EDA0 File Offset: 0x0000CFA0 public static void HierarchyChange() { BehaviorManager instance = BehaviorManager.instance; if (Application.isPlaying) { if (instance != null) { instance.onEnableBehavior = new BehaviorManager.BehaviorManagerHandler(GizmoManager.UpdateBehaviorManagerGizmos); } } else { string name = SceneManager.GetActiveScene().name; if (GizmoManager.currentScene != name) { GizmoManager.currentScene = name; GizmoManager.UpdateAllGizmos(); } } }