<pre name="code" class="csharp">
//player是目标
transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation((Player.transform.position - transform.position)), speed * Time.deltaTime);
<pre name="code" class="csharp">
//player是目标
transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation((Player.transform.position - transform.position)), speed * Time.deltaTime);