// Start is called before the first frame update void Start() { ConsoleRedirect.Redirect(); RioCommProtocol.startComm(4145, "10.41.45.2"); lastSendingPacket = RioCommProtocol.getSending(); lastSendingPacket.addJoystick(ref joy); lastRecievingPacket = RioCommProtocol.getRecieving(); }
// Update is called once per frame void Update() { RioCommProtocol.setSending(lastSendingPacket); lastRecievingPacket = RioCommProtocol.getRecieving(); }