GodotTicTacToe/scripts/MainMenu.cs
2017-11-21 19:33:48 +02:00

23 lines
382 B
C#

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();
}
}