Exemple #1
0
 internal void SetRotControl(float speed, bool isclockwise, bool isuseacc)
 {
     rotType     = RotTypeEnum.RotStart;
     this.speed  = speed;
     isClockWise = isclockwise;
     isUseAcc    = isuseacc;
     if (isclockwise)
     {
         this.speed = -Mathf.Abs(this.speed);
     }
     else
     {
         this.speed = Mathf.Abs(this.speed);
     }
 }
Exemple #2
0
 internal void SetRotStop(bool isuseacc)
 {
     rotType      = RotTypeEnum.RotStop;
     isStopUseAcc = isuseacc;
 }
Exemple #3
0
 public void SetRotControl(float speedlerp, float targetrot)
 {
     rotType     = RotTypeEnum.RotTo;
     speedLerp   = speedlerp;
     targetAngle = new Vector3(m_trans.localEulerAngles.x, m_trans.localEulerAngles.y, targetrot);
 }