Пример #1
0
 // Use this for initialization
 void Start()
 {
     allowShoot = false;
     player = GameObject.FindGameObjectWithTag("Player");
     anim = GetComponentInChildren<Animator>();
     zombieDamage = gameObject.GetComponentInChildren<ZombieDamage>();
 }
Пример #2
0
 private void Awake()
 {
     _zDamage     = GetComponent <ZombieDamage>();
     _zStateAnim  = GetComponent <ZombieAnimState>();
     _zLocomotion = GetComponent <ZombieLocomotion>();
     //  calcRandChasetype();
 }
Пример #3
0
 void Start()
 {
     rb = GetComponent<Rigidbody2D>();
     anim = GetComponentInChildren<Animator>();
     Range = BorderCheckRadius * 2;
     Player = GameObject.FindGameObjectWithTag("Player");
     AttackTrigger.enabled = false;
     zombieDamage = gameObject.GetComponentInChildren<ZombieDamage>();
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     currentPoint = points[pointSelection];
     player = GameObject.FindGameObjectWithTag("Player");
     anim = GetComponentInChildren<Animator> ();
     zombieDamage = gameObject.GetComponentInChildren<ZombieDamage>();
 }