| | |
| | | private static Dictionary<int, UIEffect> dropEffectDict = new Dictionary<int, UIEffect>();
|
| | |
|
| | | static PackModel _playerPack;
|
| | | static PackModel playerPack {
|
| | | static PackModel playerPack
|
| | | {
|
| | | get { return _playerPack ?? (_playerPack = ModelCenter.Instance.GetModel<PackModel>()); }
|
| | | }
|
| | |
|
| | |
| | | #endif
|
| | | }
|
| | |
|
| | | if (m_CacheTipErrorDict.ContainsKey(dropId))
|
| | | {
|
| | | m_CacheTipErrorDict.Remove(dropId);
|
| | | }
|
| | |
|
| | | ReleaseClientID(dropId);
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | Release(m_MapItemIdList[i]);
|
| | | }
|
| | | m_CacheTipErrorDict.Clear();
|
| | | }
|
| | |
|
| | | public static void CheckPickupItem(Vector3 checkPosition)
|
| | |
| | |
|
| | | }
|
| | |
|
| | | private static Dictionary<int, float> m_CacheTipErrorDict = new Dictionary<int, float>();
|
| | | private static void TipOthersItem(int id)
|
| | | {
|
| | | if (m_CacheTipErrorDict.ContainsKey(id))
|
| | | {
|
| | | if (Time.realtimeSinceStartup - m_CacheTipErrorDict[id] > 1)
|
| | | {
|
| | | m_CacheTipErrorDict[id] = Time.realtimeSinceStartup;
|
| | | }
|
| | | else
|
| | | {
|
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | SysNotifyMgr.Instance.ShowTip("OpenHazyRegionError_5");
|
| | | }
|
| | |
|
| | | private static bool CheckCanPickUp(DropObject dropObject)
|
| | | {
|
| | | if (dropObject.ownerType == 1)
|
| | | {
|
| | | if (dropObject.ownerID != PlayerDatas.Instance.PlayerId)
|
| | | {
|
| | | TipOthersItem(dropObject.dropID);
|
| | | return false;
|
| | | }
|
| | | }
|
| | |
| | | TeamModel _teamModel = ModelCenter.Instance.GetModel<TeamModel>();
|
| | | if (_teamModel.myTeam.teamId != dropObject.ownerID)
|
| | | {
|
| | | TipOthersItem(dropObject.dropID);
|
| | | return false;
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | if (PlayerDatas.Instance.baseData.faction != dropObject.ownerID)
|
| | | {
|
| | | TipOthersItem(dropObject.dropID);
|
| | | return false;
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | if (!_result)
|
| | | {
|
| | | TipOthersItem(dropObject.dropID);
|
| | | return false;
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | if (dropObject.ownerID != PlayerDatas.Instance.baseData.FamilyId)
|
| | | {
|
| | | TipOthersItem(dropObject.dropID);
|
| | | return false;
|
| | | }
|
| | | }
|