void Start() { health = GetComponent <Health> (); fov = GetComponent <FieldOfView> (); grudge = GetComponent <GrudgeList> (); sample = new RandomSample(hands != null ? hands.Length : 0, true); }
void Init(Animator animator) { if (agent == null) { agent = animator.GetComponent <NavMeshAgent> (); } if (grudge == null) { grudge = animator.GetComponent <GrudgeList> (); } if (fov == null) { fov = animator.GetComponent <FieldOfView> (); } }
void Init(Animator animator) { if (controller == null) { controller = animator.GetComponent <BossController> (); } if (grudge == null) { grudge = animator.GetComponent <GrudgeList> (); } if (fov == null) { fov = animator.GetComponent <FieldOfView> (); } }