Пример #1
0
 public override void OnReceiveProcess(INetEngine netEngine, NetPeer netPeer, OperationResponse operation)
 {
     //这里获取相应数据类型的数据,这里获取的string类型数据
     index = operation.GetParemater <string>(ParmaterCodes.index);
     Log.WriteLine("[index]=" + index);
     //UdpSclient.Instance.SendMsgsToState(index, "ThreadMsg");
     eventParamete.AddParameter(index);
     EventManager.TriggerEvent(MTFrame.MTEvent.GenericEventEnumType.Message, "aaa", eventParamete);
 }
Пример #2
0
    private void SentDataToState(string msg, ParmaterCodes parmater)
    {
        QueueData queueData = new QueueData();

        queueData.msg           = msg;
        queueData.parmaterCodes = parmater;
        eventParamete.AddParameter(queueData);
        UnityEngine.Debug.Log(msg);
        EventManager.TriggerEvent(MTFrame.MTEvent.GenericEventEnumType.Message, TransportType.UdpToState.ToString(), eventParamete);
    }