| | |
| | | public int BasicsDefense;//基础防御
|
| | | public int BasicsScoreAHit;//基础命中
|
| | | public int BasicsDodge;//基础闪避
|
| | | public uint equipShowSwitch;//装备显隐开关
|
| | | public long treasurePotentialSp {
|
| | | get {
|
| | | return ExAttr8 * (long)100000000 + ExAttr7;
|
| | |
| | | HappyPoint = _serverInfo.HappyPoint;
|
| | | faction = _serverInfo.Faction;
|
| | | coinPointTotal = _serverInfo.ChangeCoinPointTotal;
|
| | | equipShowSwitch = _serverInfo.EquipShowSwitch;
|
| | | godWeaponLV_1 = (int)_serverInfo.ExAttr15;
|
| | | godWeaponLV_2 = (int)_serverInfo.ExAttr16;
|
| | | godWeaponLV_3 = (int)_serverInfo.ExAttr17;
|
| | |
| | | case PlayerDataRefresh.WarehouseLV:
|
| | | break;
|
| | | case PlayerDataRefresh.EquipShowSwitch:
|
| | | baseData.equipShowSwitch = value;
|
| | | break;
|
| | | case PlayerDataRefresh.LuckValue:
|
| | | break;
|
| | |
| | | var fashionSecondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon2);
|
| | | var fashionSecondaryId = fashionSecondary == null ? 0 : (int)fashionSecondary.itemInfo.ItemID;
|
| | |
|
| | | var magicianModel = ModelCenter.Instance.GetModel<MagicianModel>();
|
| | | var godWeapon1 = magicianModel.GetGodWeaponInfo(1);
|
| | | var godWeapon2 = magicianModel.GetGodWeaponInfo(2);
|
| | | var godWeapon3 = magicianModel.GetGodWeaponInfo(3);
|
| | | var godWeapon4 = magicianModel.GetGodWeaponInfo(4);
|
| | | var data = new UI3DPlayerExhibitionData
|
| | | {
|
| | | job = PlayerDatas.Instance.baseData.Job,
|
| | |
| | | fashionWeapon2 = itemData.ItemID;
|
| | | }
|
| | |
|
| | | var godWeapons = new Dictionary<int, int>();
|
| | | var magicianModel = ModelCenter.Instance.GetModel<MagicianModel>();
|
| | | for (int i = 0; i < magicianModel.godWeaponTypes.Count; i++)
|
| | | {
|
| | | var type = magicianModel.godWeaponTypes[i];
|
| | | if (_leaderData.rolePlusData != null)
|
| | | {
|
| | | var level = _leaderData.rolePlusData.GetGodWeaponLevel(type);
|
| | | godWeapons.Add(type, level);
|
| | | }
|
| | | }
|
| | | Dictionary<int, int> dict = null;
|
| | | EquipShowSwitch.IsGodWeaponEffectOn(_leaderData.rolePropData.EquipShowSwitch, out dict);
|
| | |
|
| | | var data = new UI3DPlayerExhibitionData
|
| | | {
|
| | |
| | | weaponId = weapon,
|
| | | wingsId = wing,
|
| | | secondaryId = weapon2,
|
| | | godWeapons = godWeapons,
|
| | | godWeapons = dict,
|
| | | isDialogue = false,
|
| | | };
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | Dictionary<int, int> dict = new Dictionary<int, int>();
|
| | | for (int i = 0; i < godWeaponModel.godWeaponTypes.Count; i++)
|
| | | {
|
| | | var type = godWeaponModel.godWeaponTypes[i];
|
| | | var godWeaponInfo = godWeaponModel.GetGodWeaponInfo(type);
|
| | | var equipedLevel = godWeaponInfo != null ? godWeaponInfo.level : 0;
|
| | | dict[type] = equipedLevel;
|
| | | }
|
| | | Dictionary<int, int> dict = null;
|
| | | EquipShowSwitch.IsGodWeaponEffectOn(PlayerDatas.Instance.baseData.equipShowSwitch, out dict);
|
| | |
|
| | | UI3DPlayerExhibitionData data = new UI3DPlayerExhibitionData()
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | Dictionary<int, int> dict = new Dictionary<int, int>();
|
| | | for (int i = 0; i < godWeaponModel.godWeaponTypes.Count; i++)
|
| | | {
|
| | | var type = godWeaponModel.godWeaponTypes[i];
|
| | | var godWeaponInfo = godWeaponModel.GetGodWeaponInfo(type);
|
| | | var equipedLevel = godWeaponInfo != null ? godWeaponInfo.level : 0;
|
| | | dict[type] = equipedLevel;
|
| | | }
|
| | | Dictionary<int, int> dict = null;
|
| | | EquipShowSwitch.IsGodWeaponEffectOn(PlayerDatas.Instance.baseData.equipShowSwitch, out dict);
|
| | |
|
| | | UI3DPlayerExhibitionData data = new UI3DPlayerExhibitionData()
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | Dictionary<int, int> dict = null;
|
| | | EquipShowSwitch.IsGodWeaponEffectOn(PlayerDatas.Instance.loginInfo.EquipShowSwitch, out dict);
|
| | | var data = new UI3DPlayerExhibitionData()
|
| | | {
|
| | | job = PlayerDatas.Instance.loginInfo.Job,
|
| | |
| | | wingsId = wingsItemId,
|
| | | fashionSecondaryId = fashionSecondary,
|
| | | secondaryId = secondaryItemId,
|
| | | godWeapons = new Dictionary<int, int>() {
|
| | | { 1, (int)PlayerDatas.Instance.loginInfo.ExAttr15 },
|
| | | { 2, (int)PlayerDatas.Instance.loginInfo.ExAttr16},
|
| | | { 3, (int)PlayerDatas.Instance.loginInfo.ExAttr17 },
|
| | | { 4, (int)PlayerDatas.Instance.loginInfo.ExAttr18 } }
|
| | | godWeapons = dict
|
| | | };
|
| | |
|
| | | var model = playerModel.Show(data, m_HeroPlatform.transform);
|
| | |
| | |
|
| | | FunctionUnlockFlyObject flyObject;
|
| | |
|
| | | PlayerPackModel playerPack { get { return ModelCenter.Instance.GetModel<PlayerPackModel>(); } }
|
| | |
|
| | | DateTime openTime = DateTime.Now;
|
| | | #region Built-in
|
| | | protected override void BindController()
|
| | |
| | | switch (ActivateShow.activateType)
|
| | | {
|
| | | case ActivateShow.ActivateFunc.Realm:
|
| | | case ActivateShow.ActivateFunc.GodWeaponEffect:
|
| | | m_ModelRawImage.gameObject.SetActive(true);
|
| | | m_ModelRawImage.rectTransform.sizeDelta = new Vector2(680, 510);
|
| | | UI3DModelExhibition.Instance.ShowPlayer(m_ModelRawImage, PlayerDatas.Instance.baseData.Job, RoleEquipType.retWing);
|
| | | break;
|
| | | case ActivateShow.ActivateFunc.GodWeaponEffect:
|
| | | m_ModelRawImage.gameObject.SetActive(true);
|
| | | m_ModelRawImage.rectTransform.sizeDelta = new Vector2(680, 510);
|
| | |
|
| | | var clothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retClothes);
|
| | | var _clothesId = clothes == null ? 0 : (int)clothes.itemInfo.ItemID;
|
| | |
|
| | | var weapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon);
|
| | | var _weaponId = weapon == null ? 0 : (int)weapon.itemInfo.ItemID;
|
| | |
|
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | var _secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
|
| | |
|
| | | var fashionClothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionClothes);
|
| | | var fashionClothesId = fashionClothes == null ? 0 : (int)fashionClothes.itemInfo.ItemID;
|
| | |
|
| | | var fashionWeapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon);
|
| | | var fashionWeaponId = fashionWeapon == null ? 0 : (int)fashionWeapon.itemInfo.ItemID;
|
| | |
|
| | | var fashionSecondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon2);
|
| | | var fashionSecondaryId = fashionSecondary == null ? 0 : (int)fashionSecondary.itemInfo.ItemID;
|
| | |
|
| | | var model = ModelCenter.Instance.GetModel<MagicianModel>();
|
| | | Dictionary<int, int> dict = new Dictionary<int, int>();
|
| | | for (int i = 0; i < model.godWeaponTypes.Count; i++)
|
| | | {
|
| | | var type = model.godWeaponTypes[i];
|
| | | var godWeaponInfo = model.GetGodWeaponInfo(type);
|
| | | if (type == ActivateShow.godWeaponType)
|
| | | {
|
| | | var level = model.GetGodWeaponStageRequireLevel(type, ActivateShow.godWeaponStage);
|
| | | dict.Add(type, level);
|
| | | }
|
| | | else
|
| | | {
|
| | | dict.Add(type, godWeaponInfo == null ? 0 : godWeaponInfo.level);
|
| | | }
|
| | | }
|
| | |
|
| | | UI3DPlayerExhibitionData data = new UI3DPlayerExhibitionData()
|
| | | {
|
| | | job = PlayerDatas.Instance.baseData.Job,
|
| | | fashionClothesId = fashionClothesId,
|
| | | clothesId = _clothesId,
|
| | | fashionWeaponId = fashionWeaponId,
|
| | | weaponId = _weaponId,
|
| | | fashionSecondaryId = fashionSecondaryId,
|
| | | secondaryId = _secondaryId,
|
| | | godWeapons = dict,
|
| | | };
|
| | |
|
| | |
|
| | | UI3DModelExhibition.Instance.ShowOtherPlayer(m_ModelRawImage, data);
|
| | | break;
|
| | | case ActivateShow.ActivateFunc.GodWeapon:
|
| | | m_ModelRawImage.gameObject.SetActive(true);
|
| | | m_ModelRawImage.rectTransform.sizeDelta = new Vector2(600, 600);
|
| New file |
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public static class EquipShowSwitch
|
| | | {
|
| | | static MagicianModel godWeaponModel
|
| | | {
|
| | | get { return ModelCenter.Instance.GetModel<MagicianModel>(); }
|
| | | }
|
| | |
|
| | | const int GODWEAPON_EFFECT_STAGE = 3;
|
| | |
|
| | | public static bool IsGodWeaponEffectOn(uint value, out Dictionary<int, int> dict)
|
| | | {
|
| | | dict = new Dictionary<int, int>();
|
| | | foreach (var type in godWeaponModel.godWeaponEffectTypes)
|
| | | {
|
| | | var level = 0;
|
| | | if (IsGodWeaponEffectOn(value, type, out level))
|
| | | {
|
| | | dict.Add(type, level);
|
| | | }
|
| | | }
|
| | | return dict.Count > 0;
|
| | | }
|
| | |
|
| | | public static bool IsGodWeaponEffectOn(uint value, int type, out int level)
|
| | | {
|
| | | level = 0;
|
| | | for (int i = 0; i < GODWEAPON_EFFECT_STAGE; i++)
|
| | | {
|
| | | var stage = i + 1;
|
| | | var index = GetGodWeaponEquipShowIndex(type, stage);
|
| | | if (MathUtility.GetBitValue(value, index))
|
| | | {
|
| | | level = godWeaponModel.GetGodWeaponStageRequireLevel(type, stage);
|
| | | return true;
|
| | | }
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | public static byte GetGodWeaponEquipShowIndex(int type, int stage)
|
| | | {
|
| | | EquipShowSwitchType switchType = EquipShowSwitchType.GodWeapon_Life1;
|
| | | switch (type)
|
| | | {
|
| | | case 1:
|
| | | switchType = stage == 1 ? EquipShowSwitchType.GodWeapon_Life1 : stage == 2 ?
|
| | | EquipShowSwitchType.GodWeapon_Life2 : EquipShowSwitchType.GodWeapon_Life3;
|
| | | break;
|
| | | case 2:
|
| | | switchType = stage == 1 ? EquipShowSwitchType.GodWeapon_Atk1 : stage == 2 ?
|
| | | EquipShowSwitchType.GodWeapon_Atk2 : EquipShowSwitchType.GodWeapon_Atk3;
|
| | | break;
|
| | | case 4:
|
| | | switchType = stage == 1 ? EquipShowSwitchType.GodWeapon_Defend1 : stage == 2 ?
|
| | | EquipShowSwitchType.GodWeapon_Defend2 : EquipShowSwitchType.GodWeapon_Defend3;
|
| | | break;
|
| | | }
|
| | | return (byte)switchType;
|
| | | }
|
| | |
|
| | | public static void SendGodWeaponEffectOn(int type, int stage, bool isOn)
|
| | | {
|
| | | var level = 0;
|
| | | var value = PlayerDatas.Instance.baseData.equipShowSwitch;
|
| | | var requireLevel = godWeaponModel.GetGodWeaponStageRequireLevel(type, stage);
|
| | | if (isOn && IsGodWeaponEffectOn(value, type, out level)
|
| | | && level != requireLevel)
|
| | | {
|
| | | var _stage = 0;
|
| | | if (godWeaponModel.TryGetGodWeaponStage(type, requireLevel, out _stage))
|
| | | {
|
| | | var index = GetGodWeaponEquipShowIndex(type, _stage);
|
| | | value = (uint)MathUtility.SetBitValue((int)value, index, false);
|
| | | }
|
| | | }
|
| | |
|
| | | {
|
| | | var index = GetGodWeaponEquipShowIndex(type, stage);
|
| | | value = (uint)MathUtility.SetBitValue((int)value, index, isOn);
|
| | | }
|
| | |
|
| | | SendPackage(value);
|
| | | }
|
| | |
|
| | | public static void SendPackage(uint value)
|
| | | {
|
| | | C032F_tagCRequestEquipShowHide pak = new C032F_tagCRequestEquipShowHide();
|
| | | pak.EquipShowSwitch = value;
|
| | | GameNetSystem.Instance.SendInfo(pak);
|
| | | }
|
| | |
|
| | | public enum EquipShowSwitchType : byte
|
| | | {
|
| | | GodWeapon_Life1,//生命
|
| | | GodWeapon_Life2,
|
| | | GodWeapon_Life3,
|
| | | GodWeapon_Atk1,//攻击
|
| | | GodWeapon_Atk2,
|
| | | GodWeapon_Atk3,
|
| | | GodWeapon_Defend1,//护盾
|
| | | GodWeapon_Defend2,
|
| | | GodWeapon_Defend3,
|
| | | max = 32,
|
| | | }
|
| | | }
|
| | | } |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 01dcfe375cd5cf940bd33f6b2f4db077 |
| | | timeCreated: 1547125411 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | {
|
| | | Display();
|
| | | DisplayGodWeaponTypes();
|
| | |
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent += PlayerDataRefreshInfoEvent;
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | |
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent -= PlayerDataRefreshInfoEvent;
|
| | | UI3DModelExhibition.Instance.StopShow();
|
| | | UI3DModelExhibition.InstanceClone1.StopShow();
|
| | | }
|
| | |
| | | {
|
| | | }
|
| | | #endregion
|
| | |
|
| | | private void PlayerDataRefreshInfoEvent(PlayerDataRefresh refreshType)
|
| | | {
|
| | | if (refreshType == PlayerDataRefresh.EquipShowSwitch)
|
| | | {
|
| | | DisplayEquip();
|
| | | DisplayModel();
|
| | | }
|
| | | }
|
| | |
|
| | | void Display()
|
| | | {
|
| | |
| | | DisplayProperty();
|
| | | DisplayFightPower();
|
| | | DisplayGodWeaponEffect();
|
| | | DisplayEquip();
|
| | | }
|
| | |
|
| | | private void DisplayRequireLevel()
|
| | |
| | | void DisplayEquip()
|
| | | {
|
| | | var equipedLevel = 0;
|
| | | model.IsGodWeaponEffectEquip(selectGodWeaponType, out equipedLevel);
|
| | | EquipShowSwitch.IsGodWeaponEffectOn(PlayerDatas.Instance.baseData.equipShowSwitch, selectGodWeaponType, out equipedLevel);
|
| | | for (int i = 0; i < m_EquipSigns.Length; i++)
|
| | | {
|
| | | var stage = i + 1;
|
| | |
| | |
|
| | | private void Equip()
|
| | | {
|
| | |
|
| | | EquipShowSwitch.SendGodWeaponEffectOn(selectGodWeaponType, selectStage, true);
|
| | | }
|
| | |
|
| | | private void PutOff()
|
| | | {
|
| | |
|
| | | EquipShowSwitch.SendGodWeaponEffectOn(selectGodWeaponType, selectStage, false);
|
| | | }
|
| | |
|
| | | private void DisplayModel()
|
| | |
| | | {
|
| | | dict[type] = model.GetGodWeaponStageRequireLevel(selectGodWeaponType, selectStage);
|
| | | }
|
| | | else if (model.IsGodWeaponEffectEquip(type, out equipedLevel))
|
| | | else if (EquipShowSwitch.IsGodWeaponEffectOn(PlayerDatas.Instance.baseData.equipShowSwitch, type, out equipedLevel))
|
| | | {
|
| | | dict[type] = equipedLevel;
|
| | | }
|
| | |
| | | {
|
| | | serverInited = true;
|
| | | UpdateRedPoint();
|
| | | CheckGodWeaponEffectOn();
|
| | | }
|
| | |
|
| | | private Dictionary<int, int[]> godWeaponLevelUpCost = new Dictionary<int, int[]>();
|
| | |
| | | var stage = 0;
|
| | | if (_beforeLv != _nowLv && TryGetUnlockStage(_type, _beforeLv, _nowLv, out stage))
|
| | | {
|
| | | EquipShowSwitch.SendGodWeaponEffectOn(_type, stage, true);
|
| | | if (WindowCenter.Instance.IsOpen<MagicianWin>()
|
| | | && !NewBieCenter.Instance.inGuiding)
|
| | | {
|
| | |
| | | return godWeaponSkillEffect.TryGetValue(skillId, out effect);
|
| | | }
|
| | |
|
| | | public bool IsGodWeaponEffectEquip(int type, out int level)
|
| | | {
|
| | | level = 0;
|
| | | if (godWeaponEffectEquipDict.ContainsKey(type))
|
| | | {
|
| | | level = godWeaponEffectEquipDict[type];
|
| | | return true;
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | public bool TryGetEffectProperty(int type, int level, out Dictionary<int, int> dict)
|
| | | {
|
| | | dict = null;
|
| | |
| | | displaySkillLevels.Sort();
|
| | | return displaySkillLevels;
|
| | | }
|
| | |
|
| | | void CheckGodWeaponEffectOn()
|
| | | {
|
| | | var value = PlayerDatas.Instance.baseData.equipShowSwitch;
|
| | | if (value == 7)
|
| | | {
|
| | | value = 0;
|
| | | foreach (var type in godWeaponEffectTypes)
|
| | | {
|
| | | var stage = GetGodWeaponStage(type);
|
| | | if (stage != 0 && stage <= 3)
|
| | | {
|
| | | var index = EquipShowSwitch.GetGodWeaponEquipShowIndex(type, stage);
|
| | | value = (uint)MathUtility.SetBitValue((int)value, index, false);
|
| | | }
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | foreach (var type in godWeaponEffectTypes)
|
| | | {
|
| | | var requireLevel = 0;
|
| | | var godWeapon = GetGodWeaponInfo(type);
|
| | | if (EquipShowSwitch.IsGodWeaponEffectOn(value, type, out requireLevel)
|
| | | && (godWeapon == null || godWeapon.level < requireLevel))
|
| | | {
|
| | | var stage = 0;
|
| | | if (TryGetGodWeaponStage(type, requireLevel, out stage))
|
| | | {
|
| | | var index = EquipShowSwitch.GetGodWeaponEquipShowIndex(type, stage);
|
| | | value = (uint)MathUtility.SetBitValue((int)value, index, false);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | if (value != PlayerDatas.Instance.baseData.equipShowSwitch)
|
| | | {
|
| | | EquipShowSwitch.SendPackage(value);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public class GodWeaponInfo
|
| | |
| | | public int JobRank;
|
| | | public int FamilyID;
|
| | | public ulong FightPower;
|
| | | public uint EquipShowSwitch;
|
| | | }
|
| | |
|
| | | public class RolePlusData
|
| | |
| | | fashionWeapon2 = itemData.ItemID;
|
| | | }
|
| | |
|
| | | var godWeapons = new Dictionary<int, int>();
|
| | | var magicianModel = ModelCenter.Instance.GetModel<MagicianModel>();
|
| | | for (int i = 0; i < magicianModel.godWeaponTypes.Count; i++)
|
| | | {
|
| | | var type = magicianModel.godWeaponTypes[i];
|
| | | var level = viewPlayerData.rolePlusData.GetGodWeaponLevel(type);
|
| | | godWeapons.Add(type, level);
|
| | | }
|
| | | Dictionary<int, int> dict = null;
|
| | | EquipShowSwitch.IsGodWeaponEffectOn(viewPlayerData.rolePropData.EquipShowSwitch, out dict);
|
| | |
|
| | | var data = new UI3DPlayerExhibitionData
|
| | | {
|
| | |
| | | weaponId = weapon,
|
| | | wingsId = wing,
|
| | | secondaryId = weapon2,
|
| | | godWeapons = godWeapons,
|
| | | godWeapons = dict,
|
| | | isDialogue = false,
|
| | | };
|
| | | UI3DModelExhibition.Instance.ShowOtherPlayer(roleModel, data);
|
| | |
| | | var secondaryItemId = 0;
|
| | | var suitLevel = 0;
|
| | | var equipInfos = PlayerDatas.Instance.loginInfo.EquipInfo;
|
| | | Dictionary<int, int> dict = null;
|
| | | EquipShowSwitch.IsGodWeaponEffectOn(PlayerDatas.Instance.loginInfo.EquipShowSwitch, out dict);
|
| | |
|
| | | for (int i = 0; i < equipInfos.Length; i++)
|
| | | {
|
| | |
| | | wingsId = wingsItemId,
|
| | | secondaryId = secondaryItemId,
|
| | | isDialogue = false,
|
| | | godWeapons = new Dictionary<int, int>() {
|
| | | { 1, (int)PlayerDatas.Instance.loginInfo.ExAttr15 },
|
| | | { 2, (int)PlayerDatas.Instance.loginInfo.ExAttr16},
|
| | | { 3, (int)PlayerDatas.Instance.loginInfo.ExAttr17 },
|
| | | { 4, (int)PlayerDatas.Instance.loginInfo.ExAttr18 } }
|
| | | godWeapons = dict
|
| | | };
|
| | |
|
| | | ShowPlayer(_rawImage, data);
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | var magicianModel = ModelCenter.Instance.GetModel<MagicianModel>();
|
| | | var godWeapon1 = magicianModel.GetGodWeaponInfo(1);
|
| | | var godWeapon2 = magicianModel.GetGodWeaponInfo(2);
|
| | | var godWeapon3 = magicianModel.GetGodWeaponInfo(3);
|
| | | var godWeapon4 = magicianModel.GetGodWeaponInfo(4);
|
| | | Dictionary<int, int> dict = null;
|
| | | EquipShowSwitch.IsGodWeaponEffectOn(PlayerDatas.Instance.baseData.equipShowSwitch, out dict);
|
| | | var data = new UI3DPlayerExhibitionData
|
| | | {
|
| | | job = _job,
|
| | |
| | | wingsId = wingsId,
|
| | | secondaryId = secondaryId,
|
| | | isDialogue = _isDialogue,
|
| | | godWeapons = new Dictionary<int, int>() {
|
| | | { 1, godWeapon1==null?0:godWeapon1.level },
|
| | | { 2, godWeapon2==null?0:godWeapon2.level },
|
| | | { 3, godWeapon3==null?0:godWeapon3.level },
|
| | | { 4, godWeapon4==null?0:godWeapon4.level }
|
| | | }
|
| | | godWeapons = dict
|
| | | };
|
| | |
|
| | | ShowPlayer(_rawImage, data);
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | var magicianModel = ModelCenter.Instance.GetModel<MagicianModel>();
|
| | | var godWeapon1 = magicianModel.GetGodWeaponInfo(1);
|
| | | var godWeapon2 = magicianModel.GetGodWeaponInfo(2);
|
| | | var godWeapon3 = magicianModel.GetGodWeaponInfo(3);
|
| | | var godWeapon4 = magicianModel.GetGodWeaponInfo(4);
|
| | | Dictionary<int, int> dict = null;
|
| | | EquipShowSwitch.IsGodWeaponEffectOn(PlayerDatas.Instance.baseData.equipShowSwitch, out dict);
|
| | | var data = new UI3DPlayerExhibitionData
|
| | | {
|
| | | job = job,
|
| | |
| | | fashionWeaponId = flashWeaponId,
|
| | | fashionSecondaryId = flashSecondaryId,
|
| | | isDialogue = false,
|
| | | godWeapons = new Dictionary<int, int>() {
|
| | | { 1, godWeapon1==null?0:godWeapon1.level },
|
| | | { 2, godWeapon2==null?0:godWeapon2.level },
|
| | | { 3, godWeapon3==null?0:godWeapon3.level },
|
| | | { 4, godWeapon4==null?0:godWeapon4.level }
|
| | | }
|
| | | godWeapons = dict
|
| | | };
|
| | |
|
| | | ShowPlayer(rawImage, data);
|