paraBellumSacrum/Scripts/MainMenu.cs

15 lines
238 B
C#
Raw Permalink Normal View History

2020-10-02 20:20:08 +00:00
using Godot;
using System;
public class MainMenu : Node2D
{
public override void _Ready()
{
2020-10-02 21:48:41 +00:00
var StartButton = GetNode<Button>("Start");
}
private void _on_Start_pressed()
{
GetTree().ChangeScene("res://Scenes/Earth.tscn");
2020-10-02 20:20:08 +00:00
}
}