public void AddListenedCallBack(OnListeningStop listeningStop)
 {
     lock (onListeningStop)
     {
         onListeningStop += listeningStop;
     }
 }
 private ClientNetwork()
 {
     onReceiveInput = new OnReceiveInput((LogicData dataIn) =>
     {
         return(false);
     });
     onListeningStop = new OnListeningStop((IPEndPoint IPEP) =>
     {
         Debug.LogWarning(string.Format(
                              "Client network STOP lisetning, info: {0}:{1}.", IPEP.Address, IPEP.Port
                              ));
     });
 }