public static void DoUpdate(ClientGameController controller) { #if ENABLE_PROFILER if (Input.GetKeyDown(KeyCode.PageDown)) { MarkProfilerFrameTag(); controller.SendDebugScriptInfo("MarkFrameTag"); } #endif }
public MainWindow() { InitializeComponent(); endPoint = new IPEndPoint(IPAddress.Loopback, 55555); client = new TcpClient { ReceiveBufferSize = Convert.ToInt32(Math.Pow(2, 16)) }; client.Connect(endPoint); communicator = new ServerCommunicator(client); controller = new ClientGameController(communicator, team); SubscribeForEvents(); }
private static void Main(string[] args) { var clientGameController = new ClientGameController(); clientGameController.Start(); }