static void Main(string[] args) { locator = new Locator(); runtime = new Runtime(); locator.set(runtime); controller = new Controller(locator, "Controller"); controller.iu.inport.reverse = ReverseBall; controller.iu.inport.start = StartBall; controller.check_bindings(); TcpClient client = SocketListener.AwaitConnection("127.0.0.1", 80); // Blocks until Unity connects. dezyneThread = new DezyneThread(client); dezyneThread.Subscribe("WallHit", WallHit); thread = new Thread(dezyneThread.StartThread); thread.Start(); controller.ia.inport.start(); }
public SocketServerForm(DezyneThread thread) { InitializeComponent(); DezyneThread = thread; }