예제 #1
0
 /// <summary>
 /// Path controller constructor
 /// </summary>
 /// <param name="owner">Owner object that must be moved</param>
 /// <param name="name">Name of this controller</param>
 /// <param name="shape">Path shape</param>
 /// <param name="duration">Movement duration in seconds</param>
 /// <param name="easing">Movement easing function</param>
 public OTPathController(Object owner, string name, OTShape shape, float duration, OTEase easing)
     : base(owner, name)
 {
     this.shape = shape;
     this.duration = duration;
     this.easing = easing;
 }
예제 #2
0
 void Clean()
 {
     _shape = shape;
     _duration = duration;
     _speed = speed;
     _looping = looping;
     _addRotation = addRotation;
     _upVector = upVector;
 }
예제 #3
0
 void finishedPath(OTShape path, object owner)
 {
     // increase the counter that we will display in the OnGUI
      	finished++;
 }
예제 #4
0
 public static int[] Triangulate(OTShape shape)
 {
     return new int[]{};
 }