override protected void Attack() //overrides attack function of enemy.cs { base.Attack(); if (gun != null) //shoot the correct gun type { gun.isShooting(true, direction); } else if (shotgun != null) { shotgun.isShooting(true, direction); } }
override protected void Attack() //overrides attack function of enemy.cs { base.Attack(); if (gun != null) //shoot the correct gun type { gun.isShooting(true, direction); } else if (shotgun != null) { shotgun.isShooting(true, direction); } }