예제 #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);
        }
예제 #2
0
 private void InitStartRotation()
 {
     StartRotation = TweenHelpers.GetTargetRotation(fromOptions, transform, fromTransform, fromRotation.Value);
 }
예제 #3
0
 private void InitEndPosition()
 {
     EndPosition = TweenHelpers.GetUiTargetPosition(toOption, transform, toTransform, toPosition.Value);
 }
예제 #4
0
 private void InitStartPosition()
 {
     StartPosition = TweenHelpers.GetUiTargetPosition(fromOption, transform, fromTransform, fromPosition.Value);
 }
예제 #5
0
 private void InitEndScale()
 {
     EndScale = TweenHelpers.GetTargetScale(toOptions, transform, toTransform, toScale.IsNone ? Vector3.one : toScale.Value);
 }
예제 #6
0
 private void InitStartScale()
 {
     StartScale = TweenHelpers.GetTargetScale(fromOptions, transform, fromTransform, fromScale.IsNone ? Vector3.one : fromScale.Value);
 }