using Godot; using System; public partial class ScoreDisplay : PanelContainer { private string player; private float accuracy; private int points; private Lamp lamp; [Export] public Label PlayerLabel; [Export] public Label AccuracyLabel; [Export] public Label PointsLabel; [Export] public Label LampLabel; [Export] public string Player { get => player; set { player = value; PlayerLabel.Text = value; } } [Export] public float Accuracy { get => accuracy; set { accuracy = value; AccuracyLabel.Text = $"{value}%"; } } [Export] public int Points { get => points; set { points = value; PointsLabel.Text = value.ToString(); } } [Export] public Lamp Lamp { get => lamp; set { lamp = value; LampLabel.Text = value.ToString(); } } // Called when the node enters the scene tree for the first time. public override void _Ready() { } // Called every frame. 'delta' is the elapsed time since the previous frame. public override void _Process(double delta) { } }