mana bar
This commit is contained in:
@@ -2309,13 +2309,18 @@ public partial class PlayerController : CharacterBody3D,
|
||||
HandleEnemyTargeting();
|
||||
}
|
||||
|
||||
private float _oldMana = 100;
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
// Manage head and camera movement
|
||||
LookAround(delta);
|
||||
|
||||
EffectsManager.UpdateEffects(delta);
|
||||
GD.Print(Attributes["PlayerAttributeSet.Mana"].CurrentValue);
|
||||
// TODO: change for actual Cue
|
||||
var currentMana = Attributes["PlayerAttributeSet.Mana"].CurrentValue;
|
||||
if (Mathf.Abs(currentMana - _oldMana) > Mathf.Epsilon)
|
||||
PlayerUi.OnManaChanged(currentMana);
|
||||
_oldMana = currentMana;
|
||||
}
|
||||
|
||||
///////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user