private void OnDisable() { _currentPath = null; PathPointEditor.Disable(); }
private void OnEnable() { _currentPath = (ShapeTracerPath)target; PathPointEditor.Init(_currentPath); }
/// <summary> /// Initialize the editor /// </summary> /// <param name="path"></param> public static void Init(ShapeTracerPath path) { _selectedId = -1; _currentPath = path; _lastDeltaRotation = 0.0f; }