示例#1
0
 private void OnDisable()
 {
     _currentPath = null;
     PathPointEditor.Disable();
 }
示例#2
0
        private void OnEnable()
        {
            _currentPath = (ShapeTracerPath)target;

            PathPointEditor.Init(_currentPath);
        }
示例#3
0
 /// <summary>
 /// Initialize the editor
 /// </summary>
 /// <param name="path"></param>
 public static void Init(ShapeTracerPath path)
 {
     _selectedId        = -1;
     _currentPath       = path;
     _lastDeltaRotation = 0.0f;
 }