public MTRotateToState(MTRotateTo action, GameObject target) : base(action, target) { FromAngle = Target.transform.localRotation; ToAngle = Quaternion.Euler( action.TargetAngle); InTime = action.Duration; }
public MTRotateToState(MTRotateTo action, GameObject target) : base(action, target) { FromAngle = Target.transform.localRotation; ToAngle = Quaternion.Euler(action.TargetAngle); InTime = action.Duration; }
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; }