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); } }
internal void SetRotStop(bool isuseacc) { rotType = RotTypeEnum.RotStop; isStopUseAcc = isuseacc; }
public void SetRotControl(float speedlerp, float targetrot) { rotType = RotTypeEnum.RotTo; speedLerp = speedlerp; targetAngle = new Vector3(m_trans.localEulerAngles.x, m_trans.localEulerAngles.y, targetrot); }