![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
AI
Coder李
生活不止眼前的苟且,还有诗和远方的田野。
展开
-
AI-群组行为
不使用群组行为 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Crow : MonoBehaviour { public float animRandom = 2f; public float speed = 1; public ...原创 2018-11-12 11:35:21 · 710 阅读 · 0 评论 -
AI-简单FSM
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SimpleFSM : MonoBehaviour { public enum State { Idle, Patro, //巡逻 Chase, /...原创 2018-11-18 22:24:31 · 163 阅读 · 0 评论 -
AI-有限状态机(追击,巡逻)
有限状态机的基类,包含各种状态 using System.Collections; using System.Collections.Generic; using UnityEngine; public enum Transition { NullTransition=0, SeePlayer, LostPlayer } public enum StateI...原创 2018-11-20 17:06:33 · 625 阅读 · 0 评论 -
AI-视觉感知(听觉感知)
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Enemy03 : MonoBehaviour { //视野距离 public float viewDistance = 5; //视野范围 public float viewA...原创 2018-11-20 23:31:52 · 1665 阅读 · 0 评论