public void AddListeningCallBack(OnReceiveInput receiveInput) { lock (onReceiveInput) { onReceiveInput += receiveInput; } }
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 )); }); }