// Use this for initialization void Start() { client = new AppClient(); client.setServer("localhost", 3000); client.run(); client.onReceivedCallback += delegate(Packet packet) { this.packets.push(packet); }; }