利用Itween来控制物体的旋转
2019-01-07 本文已影响0人
不过一书生
itween来控制物体旋转的方法.
private void RotateToRight()
{
float addValue = transform.localEulerAngles.y;//物体的y轴方向的旋转角度,float类型
iTween.RotateTo(this.gameObject, iTween.Hash("rotation", new Vector3(0, addValue - 90f, 0), "easeType", "easeInOutExpo", "time", 2f, "delay", 0.01f, "loolType", "none", "islocal", true));
}