So my question is why do all my enemies shoot from one bullet spawn point (The bullet spawn of the first enemy to spawn), but not their own? Here’s my shooting code for my enemies:
function Shoot() {
allowfire = false;
var instantiatedbullet = Instantiate(bullet,GameObject.Find("EnemyGunSpawn")
.transform.position, Quaternion.Euler(direction.normalized));
yield WaitForSeconds(0.75);
allowfire = true;
}
“EnemyGunSpawn” is the bullet spawn point and direction is just the angle that the player is from the enemy. Any help would be greatly appreciated, and I’m sure it’s a simple solution too that I am over looking.