public static void Update() { #if UNITY_EDITOR if (m_tool != UnityEditor.Tools.current) { if (ToolChanged != null) { ToolChanged(); } m_tool = UnityEditor.Tools.current; } #endif }
static UnityEditorToolsListener() { m_tool = UnityEditor.Tools.current; }