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