Beispiel #1
0
    public void _on_Player_DeadSignal()
    {
        string killCountText = "Total Seagull Killed: " + Score.instance.KillCount;

        endingContainer.GetNode <Label>("VBoxContainer/KillCount").Text = killCountText;

        string maxHeightText = "Maximum Height Reached: " + Score.instance.MaxHeight;

        endingContainer.GetNode <Label>("VBoxContainer/MaxHeight").Text = maxHeightText;

        endingContainer.Show();
    }
Beispiel #2
0
 public override void _Input(InputEvent inputEvent)
 {
     if (inputEvent.IsActionPressed("ui_pause"))
     {
         GetTree().Paused = !GetTree().Paused;
         if (GetTree().Paused)
         {
             _pause.Show();
         }
         else
         {
             _pause.Hide();
         }
     }
 }