private void Attack() { BaseProjectile baseProjectile = Instantiate(projectile, transform.position, Quaternion.identity, projectileHolder.transform).GetComponent <BaseProjectile>(); baseProjectile.SetDefender(this); }
private void Attack() { BaseProjectile baseProjectile = Instantiate(projectile, transform.position, Quaternion.identity, projectileHolder.transform).GetComponent <BaseProjectile>(); baseProjectile.SetDefender(this); }