This commit is contained in:
LibreHacker 2020-10-03 00:48:41 +03:00
parent 0a17bf8103
commit fc017ae798
6 changed files with 59 additions and 19 deletions

10
Scripts/Earth.cs Normal file
View file

@ -0,0 +1,10 @@
using Godot;
using System;
public class Earth : Node2D
{
public override void _Ready()
{
}
}

View file

@ -3,19 +3,12 @@ using System;
public class MainMenu : Node2D
{
// Declare member variables here. Examples:
// private int a = 2;
// private string b = "text";
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
var StartButton = GetNode<Button>("Start");
}
private void _on_Start_pressed()
{
GetTree().ChangeScene("res://Scenes/Earth.tscn");
}
// // Called every frame. 'delta' is the elapsed time since the previous frame.
// public override void _Process(float delta)
// {
//
// }
}