mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-08 10:10:54 +03:00
Merge pull request #2248 from Azumgi/patch-1
Fix several C# code errors in "Getting Started" section
This commit is contained in:
@@ -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``.
|
||||
|
||||
Reference in New Issue
Block a user