2
This commit is contained in:
parent
0a17bf8103
commit
fc017ae798
6 changed files with 59 additions and 19 deletions
10
Scripts/Earth.cs
Normal file
10
Scripts/Earth.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
using Godot;
|
||||
using System;
|
||||
|
||||
public class Earth : Node2D
|
||||
{
|
||||
public override void _Ready()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
|
@ -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)
|
||||
// {
|
||||
//
|
||||
// }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue