7-11-25 7:00pm
This commit is contained in:
15
Gameplay/PowerBar.cs
Normal file
15
Gameplay/PowerBar.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class PowerBar : ProgressBar
|
||||
{
|
||||
public override void _Ready()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
Value = ((Main)GetParent()).GetNode<Cue>("Cue")._power / ((Main)GetParent())._maxPower * 100;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user