예제 #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;
 }