// Called when the node enters the scene tree for the first time. public override void _Ready() { HealthEvent.RegisterListener(UpdateHealthbar); UIEvent.RegisterListener(UpdateUI); healthbar = GetNode <TextureProgress>("Healthbar"); waveCountDown = GetNode <Label>("CountDown"); }