mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 13:30:07 +01:00
13 lines
187 B
C#
13 lines
187 B
C#
using Godot;
|
|
|
|
public partial class ScoreLabel : Label
|
|
{
|
|
private int _score = 0;
|
|
|
|
public void OnMobSquashed()
|
|
{
|
|
_score += 1;
|
|
Text = $"Score: {_score}";
|
|
}
|
|
}
|