Merge pull request #2248 from Azumgi/patch-1

Fix several C# code errors in "Getting Started" section
This commit is contained in:
Rémi Verschelde
2019-03-15 14:17:39 -07:00
committed by GitHub

View File

@@ -1037,7 +1037,7 @@ show the "Start" button.
public void UpdateScore(int score)
{
GetNode<Label>("ScoreLabel").Text = _score.ToString();
GetNode<Label>("ScoreLabel").Text = score.ToString();
}
This function is called by ``Main`` whenever the score changes.
@@ -1120,7 +1120,7 @@ sync with the changing score:
.. code-tab:: csharp
GetNode<HUD>.UpdateScore(_score);
GetNode<HUD>("HUD").UpdateScore(_score);
Now you're ready to play! Click the "Play the Project" button. You will
be asked to select a main scene, so choose ``Main.tscn``.