private void PerformAttack(int attackNumber) { if (attackNumber < attackType.Count) { BulletPattern attack = Instantiate(attackType[attackNumber], transform.position, transform.rotation); attack.tag = transform.root.tag; attack.SetOwner(owner); } }
private void PerformAttack(int attackNumber) { if (attackNumber < attackType.Count) { BulletPattern attack = Instantiate(attackType[attackNumber], transform.position, transform.rotation); attack.tag = transform.root.tag; attack.SetOwner(owner); } }