death sounds, build sounds, better audio management
This commit is contained in:
parent
a7b2d1854d
commit
9f25844657
26 changed files with 313 additions and 12 deletions
|
|
@ -166,6 +166,11 @@ namespace TD.Gameplay
|
|||
}
|
||||
}
|
||||
|
||||
// ----- Events ---------------------------------------------------------
|
||||
|
||||
/// <summary>Fired on ALL peers when this tower finishes construction and spawns.</summary>
|
||||
public event System.Action OnBuiltClient;
|
||||
|
||||
// ----- Server-only initialization -------------------------------------
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -262,6 +267,8 @@ namespace TD.Gameplay
|
|||
$"for {ownerSlot.Value} at anchor {anchorTile.Value}. " +
|
||||
$"IsServer={IsServer}");
|
||||
}
|
||||
|
||||
OnBuiltClient?.Invoke();
|
||||
}
|
||||
|
||||
public override void OnNetworkDespawn()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue