| Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0418_tagObjInfoRefresh.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0434_tagAreaPlayerAppearEx.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/CrossServerOneVsOne/FightingPKWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/CrossServerOneVsOne/OpponentInformation.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/CrossServerOneVsOne/OpponentInformation.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0418_tagObjInfoRefresh.cs
@@ -32,7 +32,7 @@ _player.SwitchRealm((int)vNetData.Value); } } OpponentInformation.Instance.GetOpponentInformation0418(vNetData);//用于获取玩家护盾属性 if (PlayerDatas.Instance.PlayerId == vNetData.ObjID) { PlayerDatas.Instance.RefreshPlayerData(vNetData); Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0434_tagAreaPlayerAppearEx.cs
@@ -1,5 +1,6 @@ using UnityEngine; using System.Collections; using Snxxz.UI; //04 34 周围玩家出现合并封包#tagAreaPlayerAppearEx @@ -24,7 +25,7 @@ { // 异常 } OpponentInformation.Instance.GetOpponentInformation0434(vNetData);//用于获取玩家护盾属性 BattleEffectPlayRule.Instance.AddPlayer(vNetData.PlayerID); // 离线玩家 System/CrossServerOneVsOne/FightingPKWin.cs
@@ -100,6 +100,7 @@ PlayerBuffDatas.Even_ObjAddBuf += AddBuff; PlayerBuffDatas.Even_ObjDelBuff += DelBuff; PlayerBuffDatas.BuffUpdateEvent += BuffUpdateEvent; OpponentInformation.Instance.ShieldUpdate += ShieldUpdate; } @@ -114,10 +115,11 @@ dungeonModel.updateMissionEvent -= UpdateMissionEvent; PlayerBuffDatas.Even_ObjAddBuf -= AddBuff; PlayerBuffDatas.Even_ObjDelBuff -= DelBuff; PlayerBuffDatas.BuffUpdateEvent -= BuffUpdateEvent; PlayerBuffDatas.BuffUpdateEvent -= BuffUpdateEvent; OpponentInformation.Instance.ShieldUpdate -= ShieldUpdate; } protected override void OnAfterClose() { @@ -177,6 +179,8 @@ OnCreateGridLineCel2(m_ScrollerController2); } } private void BuffUpdateEvent(int playerID) { int opponentPlayerId = CrossServerLogin.Instance.oneVsOnePlayerData.opponentPlayerId; @@ -232,6 +236,11 @@ } } private void ShieldUpdate(int playerID, int shieldNow) { DebugEx.LogError("输出玩家的ID" + playerID+"输出当前护盾值"+ shieldNow); } private void OnHeroHandupAIStopPassive() { //if (!m_AutoImg.activeSelf) System/CrossServerOneVsOne/OpponentInformation.cs
New file @@ -0,0 +1,53 @@ //-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Friday, December 28, 2018 //-------------------------------------------------------- using System; using System.Collections.Generic; using TableConfig; using Snxxz.UI; namespace Snxxz.UI { [XLua.LuaCallCSharp] //对手信息 public class OpponentInformation : Singleton<OpponentInformation> { public int PlayerID { get; private set; } // 玩家ID public int ExAttr4 { get; private set; } // 当前护盾值 public event Action<int, int> ShieldUpdate;//玩家ID和护盾刷新 public void GetOpponentInformation0418(H0418_tagObjInfoRefresh info) { switch ((PlayerDataRefresh)info.RefreshType) { case PlayerDataRefresh.ExAttr4: this.PlayerID = (int)info.ObjID; this.ExAttr4 = (int)info.Value; if (ShieldUpdate != null) { ShieldUpdate((int)info.ObjID, (int)info.Value); } break; default: break; } } public void GetOpponentInformation0434(H0434_tagAreaPlayerAppearEx info) { this.PlayerID = (int)info.PlayerID; this.ExAttr4 = (int)info.ExAttr4; if (ShieldUpdate != null) { ShieldUpdate((int)info.PlayerID, (int)info.ExAttr4); } } } } System/CrossServerOneVsOne/OpponentInformation.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: b301ee999f03dff4ea3e6550c88b7f2b timeCreated: 1545998954 licenseType: Free MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: