// Start is called before the first frame update void Start() { combat = GetComponent <PlayerCombat>(); shotgunShells = GameObject.FindGameObjectsWithTag("ShotgunShell"); maxAmmo = shotgunShells.Length; enemyHealth = GameObject.FindGameObjectWithTag("Enemy").GetComponent <EnemyHealth>(); currentAmmo = maxAmmo; source = GetComponent <AudioSource>(); anim = GetComponent <Animator>(); hitEnemy = pellets.GetComponent <HitEnemy>(); hitEnemy.SetDamage(damage); }