starfighter/MB_FYP/script/hud.cs

18 lines
434 B
C#

using Godot;
using System;
public partial class hud : Control
{
public Label Score = new();
public Label FlightAssist = new();
public override void _Ready()
{
Score = GetNode<Label>("Score");
Score.Text = "SCORE: 0";
// Keeping health being initialised in game.cs
FlightAssist = GetNode<Label>("FlightAssist");
FlightAssist.Text = "FA: ON"; // Should be on by default
}
}