/// <summary> /// 拾取结果协议处理 /// </summary> /// <param name="respond"></param> public void NotifyDropItemResult(S2C_NOTIFY_PERSONAL_DROP_RESULT respond) { //if (respond.result == 0) //{ // string key = respond.map_id.ToString() + respond.area_uid.ToString() + respond.npc_uid.ToString(); // if (m_GatherDropItemInfos.ContainsKey(key)) // { // GameObject obj = m_GatherDropItemInfos[key].obj; // if (obj) // { // MineDropComponent mineDropComponent = obj.GetComponent<MineDropComponent>(); // if (mineDropComponent) // { // UIManager.Instance.StartCoroutine(PickUpEffect(key, mineDropComponent)); // } // } // else // { // DestoryDropInfo(key); // } // } //} }
/// <summary> /// 拾取结果 /// </summary> /// <param name="buf"></param> private void OnNotifyDropItemResult(KProtoBuf buf) { S2C_NOTIFY_PERSONAL_DROP_RESULT respond = buf as S2C_NOTIFY_PERSONAL_DROP_RESULT; MineDropItemManager.Instance.NotifyDropItemResult(respond); }