摘要:2、Sceen.Width //游戏界面的宽度3、Debug.DrawLine(v3,v3,color) // 画线 Quaternion.slerp() //4、Quaternion.LookRotation(target.totation - myTransform.position) enemy AI:enemyTF.rotation =Quaternion.Slerp(enemyTF.rotation,Quaternion.LookRotation(target.position - enemyTF.position),rotationSpeed * Time.daltaTime)..
阅读全文