my HEAD hurts and the SFX is TOO LOUD
This commit is contained in:
parent
a3321d361c
commit
d4ebf0ca61
41 changed files with 1465 additions and 123 deletions
|
|
@ -21,6 +21,9 @@ public class PlayerAbility : MonoBehaviour
|
|||
public int baseProjectileCount;
|
||||
public int projectileCount;
|
||||
public Dictionary<AbilityUpgrade, int> attachedUpgrades = new();
|
||||
[Header("SFX")]
|
||||
[SerializeField] private AudioClip useAbilitySFX;
|
||||
[SerializeField] private float volume = 1;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
|
|
@ -34,6 +37,7 @@ public class PlayerAbility : MonoBehaviour
|
|||
if (currentCooldown <= 0 && canCooldown)
|
||||
{
|
||||
currentCooldown = cooldown;
|
||||
AbilityManager.instance.player.thisPlayer.entityAS.PlayOneShot(useAbilitySFX, volume);
|
||||
AbilityEffects();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue