public void Update() { Actor player = Session.session.player; if (player == null) { GD.Print("Player 1 doesn't exist."); return; } string healthText = "Health: " + player.GetHealth(); healthBox.Text = healthText; string itemText = player.ItemInfo(); itemBox.Text = itemText; string objectiveText = Session.GetObjectiveText(); objectiveBox.Text = objectiveText; IInteract interactor = player.VisibleObject() as IInteract; if (interactor == null) { interactionBox.Hide(); } else { Item.Uses interaction = player.GetActiveInteraction(); string interactionText = interactor.GetInteractionText(interaction); interactionBox.Show(); interactionBox.SetText(interactionText); } }