remove unused variable
This commit is contained in:
parent
6b87e03a17
commit
1bc518824c
1 changed files with 2 additions and 8 deletions
|
|
@ -64,12 +64,6 @@ namespace TD.Combat
|
|||
|
||||
// ----- Public API --------------------------------------------------
|
||||
|
||||
/// <summary>
|
||||
/// Server-local reference to the current attack target.
|
||||
/// Null on clients — use <see cref="replicatedTarget"/> there.
|
||||
/// </summary>
|
||||
public EnemyHealth CurrentTarget => currentTarget;
|
||||
|
||||
/// <summary>
|
||||
/// Fired locally on ALL peers when the tower acquires a new target.
|
||||
/// Driven by <see cref="replicatedTarget"/>.<c>OnValueChanged</c>, and also
|
||||
|
|
@ -239,7 +233,7 @@ namespace TD.Combat
|
|||
}
|
||||
else
|
||||
{
|
||||
SpawnProjectile(def, currentTarget, targetPos);
|
||||
SpawnProjectile(def, currentTarget);
|
||||
}
|
||||
|
||||
FireClientRpc(targetPos);
|
||||
|
|
@ -346,7 +340,7 @@ namespace TD.Combat
|
|||
|
||||
// ----- Projectile spawning -----------------------------------------
|
||||
|
||||
private void SpawnProjectile(TowerDefinition def, EnemyHealth target, Vector3 targetPos)
|
||||
private void SpawnProjectile(TowerDefinition def, EnemyHealth target)
|
||||
{
|
||||
var go = Instantiate(def.ProjectilePrefab, transform.position, Quaternion.identity);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue