GodotTicTacToe/scripts/MainMenu.cs

23 lines
382 B
C#
Raw Normal View History

2017-11-21 18:33:48 +01:00
using Godot;
using System;
public class MainMenu : Panel {
private Net Net;
public override void _Ready() {
Net = (Net) GetNode("/root/Net");
}
private void OnLaunchServer() {
GD.print("Launch Server!");
Net.StartServer();
}
private void OnLaunchClient() {
GD.print("Launch Client!");
Net.StartClient();
}
}