摘要:
voidUpdate(){if(inRotation){Quaternionrotation=Quaternion.LookRotation(target.position-this.transform.position);floatt=Mathf.Min(Time.deltaTime*2,1);rotation=Quaternion.Lerp(transform.rotation,rotation,t);this.transform.rotation=rotation;if(t==1){inRotation=false;}}}voidOnGUI(){if(GUI.Button(newRect 阅读全文
posted @ 2012-07-19 11:10
雨季
阅读(569)
评论(0)
推荐(0)
浙公网安备 33010602011771号