Esempio n. 1
0
        private void InitEndRotation()
        {
            EndRotation = TweenHelpers.GetTargetRotation(toOptions, transform, toTransform, toRotation.Value);

            // also store a mid point rotation to allow slerping past 180 degrees.
            // this doesn't handle entering angles past 360

            midRotation = TweenHelpers.GetTargetRotation(toOptions, transform, toTransform, toRotation.Value / 2);
        }
Esempio n. 2
0
 private void InitStartRotation()
 {
     StartRotation = TweenHelpers.GetTargetRotation(fromOptions, transform, fromTransform, fromRotation.Value);
 }
Esempio n. 3
0
 private void InitEndPosition()
 {
     EndPosition = TweenHelpers.GetUiTargetPosition(toOption, transform, toTransform, toPosition.Value);
 }
Esempio n. 4
0
 private void InitStartPosition()
 {
     StartPosition = TweenHelpers.GetUiTargetPosition(fromOption, transform, fromTransform, fromPosition.Value);
 }
Esempio n. 5
0
 private void InitEndScale()
 {
     EndScale = TweenHelpers.GetTargetScale(toOptions, transform, toTransform, toScale.IsNone ? Vector3.one : toScale.Value);
 }
Esempio n. 6
0
 private void InitStartScale()
 {
     StartScale = TweenHelpers.GetTargetScale(fromOptions, transform, fromTransform, fromScale.IsNone ? Vector3.one : fromScale.Value);
 }