摘要:
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 阅读全文