1 2 3 4 5 ··· 18 下一页
摘要: public class L53 : MonoBehaviour { // Start is called before the first frame update void Start() { //导航动态障碍物组件的使用 //1.为需要进行动态阻碍的对象添加NavMeshObstacle // 阅读全文
posted @ 2025-04-09 19:54 cannedmint 阅读(28) 评论(0) 推荐(0)
摘要: public class L52 : MonoBehaviour { // Start is called before the first frame update void Start() { //如果希望两个未连接的平面之间只有有限条连接路径,并且运行时可以动态添加就可使用网格外连接组件 // 阅读全文
posted @ 2025-04-09 19:36 cannedmint 阅读(8) 评论(0) 推荐(0)
摘要: public class L51 : MonoBehaviour { public NavMeshAgent agent; // Start is called before the first frame update void Start() { //Nav Mesh Agent 相关参数 // 阅读全文
posted @ 2025-04-09 18:28 cannedmint 阅读(28) 评论(0) 推荐(0)
摘要: public class L50 : MonoBehaviour { // Start is called before the first frame update void Start() { //相关参数 //Agents 代理,设置寻路代理信息 //Areas 导航地区,设置对象的寻路消耗 阅读全文
posted @ 2025-04-09 17:38 cannedmint 阅读(26) 评论(0) 推荐(0)
摘要: public class L49 : MonoBehaviour { CharacterController cc; Animator ani; // Start is called before the first frame update void Start() { ani = GetComp 阅读全文
posted @ 2025-04-09 16:41 cannedmint 阅读(20) 评论(0) 推荐(0)
摘要: public class L47 : StateMachineBehaviour { //在状态机某一个状态中添加一个脚本实现特定的逻辑 //使用状态机脚本 //1.新建一个继承StateMachineBehaviour基类的脚本 //2.实现其中特定的方法进行状态行为监听 public overr 阅读全文
posted @ 2025-04-09 16:03 cannedmint 阅读(20) 评论(0) 推荐(0)
摘要: public class L46 : MonoBehaviour { public Animator ani; public Transform targetPos; // Start is called before the first frame update void Start() { an 阅读全文
posted @ 2025-04-09 11:45 cannedmint 阅读(15) 评论(0) 推荐(0)
摘要: public class L45 : MonoBehaviour { public Animator ani; public Transform trans; // Start is called before the first frame update void Start() { ani = 阅读全文
posted @ 2025-04-09 11:20 cannedmint 阅读(16) 评论(0) 推荐(0)
摘要: public class L44 : MonoBehaviour { // Start is called before the first frame update void Start() { //如果一个状态是由多个动作状态组合而成,就可以把它们放到一个子状态机中 //需要注意子状态机和外部状 阅读全文
posted @ 2025-04-09 10:22 cannedmint 阅读(25) 评论(0) 推荐(0)
摘要: public class L43 : MonoBehaviour { // Start is called before the first frame update void Start() { //2D Simple Directional 动画仅有运动方向的区别 //2D Freeform D 阅读全文
posted @ 2025-04-09 10:10 cannedmint 阅读(5) 评论(0) 推荐(0)
1 2 3 4 5 ··· 18 下一页