Beispiel #1
0
    private void OnEnable()
    {
        targetScript = (CirclePathComponent)target;
        circlePath   = targetScript.Path;
        settings     = targetScript.EditorOnlyToolSettings;

        if (!Safety())
        {
            SceneView.currentDrawingSceneView.ShowNotification(new GUIContent(PathEditorUtility.EditorUnavailable));
            return;
        }
    }
    private void OnEnable()
    {
        targetScript = (CirclePathComponent)target;
        circlePath = targetScript.Path;
        settings = targetScript.EditorOnlyToolSettings;

        if (!Safety())
        {
            SceneView.currentDrawingSceneView.ShowNotification(new GUIContent(PathEditorUtility.EditorUnavailable));
            return;
        }
    }