// Use this for initialization void Start() { hasGun = GameObject.FindGameObjectWithTag("Player"); if (hasGun != null) { shooter = hasGun.GetComponent <Gunfire>(); } enemyHealth = 100; Debug.Log("Enemy Health Set"); }
void Start() { GunComponent = GetComponent <Gunfire>(); }
// Use this for initialization void Start() { ThisGunfire = GetComponent <Gunfire> (); HandgunReloadAnim = GetComponent <Animation> (); Wf1d1s = new WaitForSeconds(1.1f); }
void ShootingAnimation() { gFire = GameObject.FindGameObjectWithTag("Gun").GetComponent <Gunfire>(); gFire.Shooting(); }