blob: 0101183599b76fc1d2c21d338c30b4906a08e9f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
using Godot;
namespace Texty.Scripts
{
public class Texty : Node
{
public Game Game;
public StartMenu StartMenu;
public override void _Ready()
{
Game = GetNode<Game>(nameof(Game));
StartMenu = GetNode<StartMenu>(nameof(StartMenu));
}
public void OnQuitGame()
{
GetTree().Notification(MainLoop.NotificationWmQuitRequest);
}
public void OnStartGame()
{
StartMenu.Visible = false;
Game.Visible = true;
}
}
}
|