public void initialize(Vector3 position, Weapon weapon, Transform hand) { transform.position = position; this.hand = hand; this.speed = weapon.getProjectileSpeed(); this.damage = weapon.getDamage(); this.lifeSpan = weapon.getLifeSpan(); }
public void initialize(Vector3 position, Weapon weapon, Transform hand) { transform.position = position; this.hand = hand; this.speed = weapon.getProjectileSpeed(); this.damage = weapon.getDamage(); this.lifeSpan = weapon.getLifeSpan(); }