Ejemplo n.º 1
0
 public void Setup(Vector3 _startRotationAngles, Quaternion _finalRotation, Spline _spline, float _speed, SplineEventDelegate _OnReachEndOfSpline)
 {
     startRotationAngles = _startRotationAngles;
     finalRotation       = _finalRotation;
     spline             = _spline;
     OnReachEndOfSpline = _OnReachEndOfSpline;
     speed    = _speed;
     currentT = 0f;
 }
Ejemplo n.º 2
0
 public void NotifyOnPercent(float percent, SplineEventDelegate OnPercent)
 {
     nextNotifyPercentage      = percent;
     OnReachPercentageOfSpline = OnPercent;
     setNotifyNextFrame        = true;
 }