init
This commit is contained in:
15
src/Game.cs
Normal file
15
src/Game.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace ChickenGameTest;
|
||||
|
||||
using Godot;
|
||||
|
||||
public partial class Game : Control
|
||||
{
|
||||
public Button TestButton { get; private set; } = default!;
|
||||
public int ButtonPresses { get; private set; }
|
||||
|
||||
public override void _Ready()
|
||||
=> TestButton = GetNode<Button>("%TestButton");
|
||||
|
||||
public void OnTestButtonPressed() => ButtonPresses++;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user