Add some on-screen FX for some items
This commit is contained in:
@@ -75,6 +75,8 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
||||
#endregion
|
||||
|
||||
#region Node Dependencies
|
||||
[Node] public IAnimationPlayer SpellFXAnimations { get; set; } = default!;
|
||||
|
||||
[Node] private IAnimationPlayer WeaponAnimations { get; set; } = default!;
|
||||
|
||||
[Node] private IAnimationPlayer PlayerFXAnimations { get; set; } = default!;
|
||||
@@ -596,6 +598,12 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
||||
}
|
||||
}
|
||||
|
||||
public void PlaySpellFX(SpellFXEnum spellEnum)
|
||||
{
|
||||
SpellFXAnimations.Stop();
|
||||
SpellFXAnimations.Play(spellEnum.ToString());
|
||||
}
|
||||
|
||||
private void OnLevelUp()
|
||||
{
|
||||
BoostPlayerHPFromLevelUp();
|
||||
|
||||
Reference in New Issue
Block a user