Esempio n. 1
0
 void Start()
 {
     health = GetComponent <Health> ();
     fov    = GetComponent <FieldOfView> ();
     grudge = GetComponent <GrudgeList> ();
     sample = new RandomSample(hands != null ? hands.Length : 0, true);
 }
Esempio n. 2
0
 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> ();
     }
 }
Esempio n. 3
0
 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> ();
     }
 }