通过键盘上↑.↓.←.→实现对物体的控制 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Gary_Text : MonoBehaviour { public Transform WuTi; ; // Use this for initialization void Start () { } // Update is called once per frame
GL10提供了glRotatef(float angle , float x , float y , float z)方法,该方法用于控制旋转,该方法种angle控制旋转角度:而x.y.z参数则共同决定了旋转轴的方向. 本质上,glRotatef(float angle , float x , float y , float z)方法的作用与glTranslatef(float x , float y ,float z)方法相似,只是glTranslatef(floa
//ClickMove - - 通过鼠标点击控制物体移动 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; // include NavMeshAgent public class ClickMove : MonoBehaviour { public NavMeshAgent player; //获取动画组件 //public Animator