You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
637 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.Networking;
  5. using Networking.Client;
  6. using Networking;
  7. public class NetworkOutput : MonoBehaviour
  8. {
  9. public LogicTrayUI Tray;
  10. [SerializeField]
  11. protected ClientObject Client;
  12. [ContextMenu("Send list")]
  13. public void SendList()
  14. {
  15. LogicProtocols.LogicMsg msg = new LogicProtocols.LogicMsg(Tray.reader.LogicChain.ToArray());
  16. Debug.Log("sending on " + LogicProtocols.SendLogicList);
  17. Client.client.SendByChannel(LogicProtocols.SendLogicList, msg,TransportConfigure.ReliableFragmented);
  18. }
  19. }