13 lines
280 B
C#
13 lines
280 B
C#
using Godot;
|
|
using System;
|
|
|
|
public partial class PowerBar : ProgressBar
|
|
{
|
|
|
|
|
|
public override void _Process(double DELTA_)
|
|
{
|
|
Value = GetParent().GetNode<Actor>("Actor").GetNode<Cue>("Cue")._power / GetParent().GetNode<Actor>("Actor").GetNode<Cue>("Cue")._maxPower * 100;
|
|
}
|
|
}
|