コード例 #1
0
ファイル: MTRotateTo.cs プロジェクト: jyzgo/MTActionLib
 public MTRotateToState(MTRotateTo action, GameObject target)
     : base(action, target)
 {
     FromAngle = Target.transform.localRotation;
     ToAngle = Quaternion.Euler( action.TargetAngle);
     InTime = action.Duration;
 }
コード例 #2
0
 public MTRotateToState(MTRotateTo action, GameObject target)
     : base(action, target)
 {
     FromAngle = Target.transform.localRotation;
     ToAngle   = Quaternion.Euler(action.TargetAngle);
     InTime    = action.Duration;
 }
コード例 #3
0
 public MTRotateToState(MTRotateTo action, GameObject target)
     : base(action, target)
 {
     if (Target == null)
     {
         return;
     }
     FromAngle = Target.transform.localRotation.eulerAngles;
     ToAngle   = action.TargetAngle;// Quaternion.Euler( action.TargetAngle);
     InTime    = action.Duration;
 }