예제 #1
0
 // 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();
 }
예제 #2
0
 // Update is called once per frame
 void Update()
 {
     RioCommProtocol.setSending(lastSendingPacket);
     lastRecievingPacket = RioCommProtocol.getRecieving();
 }