build sfx
This commit is contained in:
parent
133bba34fb
commit
681882c381
|
@ -65,14 +65,21 @@ public class TowerPlacementManager : MonoBehaviour
|
|||
|
||||
private void OnEnable()
|
||||
{
|
||||
OnTowerPlaced += PlayPlaceSfx;
|
||||
MoneyManager.OnShopSelected += OnShopSelected;
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
OnTowerPlaced -= PlayPlaceSfx;
|
||||
MoneyManager.OnShopSelected -= OnShopSelected;
|
||||
}
|
||||
|
||||
private void PlayPlaceSfx(TowerInfo info)
|
||||
{
|
||||
AudioManager.PlaySound("BuildTower", Vector3.zero);
|
||||
}
|
||||
|
||||
private void OnShopSelected(TowerInfo info)
|
||||
{
|
||||
SelectedTowerInfo = info;
|
||||
|
|
Loading…
Reference in New Issue