public void Init(float withDistance, float withSpeed, int withDamage, ProjectileTargetType withTargetType, Vector3 targetPos) { _distance = withDistance; _targetType = withTargetType; _speed = withSpeed; _targetPos = targetPos; _damage = withDamage; }
public void Init(float withDistance, float withSpeed, int withDamage, ProjectileTargetType withTargetType, Unit enemyUnit) { _distance = withDistance; _targetType = withTargetType; _speed = withSpeed; _targetPos = enemyUnit.transform.position; _enemyUnit = enemyUnit; _damage = withDamage; }