Updates to spells, HUD, Gold, and Camera Controls. New sound effects!
This commit is contained in:
parent
689fe7be88
commit
a33d951abd
27 changed files with 578 additions and 68 deletions
|
|
@ -62,7 +62,7 @@ namespace TD.Gameplay.BuilderSpells
|
|||
return hitAny;
|
||||
}
|
||||
|
||||
public override void ClientPlayVfx(Vector3 targetPoint)
|
||||
public override void ClientSpawnVfx(Vector3 targetPoint)
|
||||
{
|
||||
if (areaVfxPrefab != null)
|
||||
{
|
||||
|
|
@ -70,7 +70,11 @@ namespace TD.Gameplay.BuilderSpells
|
|||
instance.transform.localScale *= Mathf.Max(Radius, 0.01f);
|
||||
Destroy(instance, EffectDuration);
|
||||
}
|
||||
}
|
||||
|
||||
public override void ClientPlayImpact(Vector3 targetPoint)
|
||||
{
|
||||
// Instant spell (ImpactDelay = 0), so this fires on cast alongside ClientSpawnVfx.
|
||||
if (areaSound.clip != null)
|
||||
AudioManager.Instance?.Play(areaSound.clip, AudioCategory.Combat,
|
||||
areaSound.RandomPitch(), areaSound.volume);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue