[InitializeOnLoadMethod]
static void Initialize()
{
SceneView.onSceneGUIDelegate += Update;
SceneView.duringSceneGui += Update;
EditorApplication.playModeStateChanged += OnPlayModeChanged;
}
SceneView.onSceneGUIDelegate += OnSceneGUI;
SceneView.duringSceneGui += OnSceneGUI;
private static void OnSceneGUI(SceneView sceneView)