Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A9 04 查询boss信息 #tagCGQueryBossInfo |
| | | |
| | | public class CA904_tagCGQueryBossInfo : GameNetPackBasic |
| | | { |
| | | public byte Count; //数量 |
| | | public uint[] BossIDList; //boosid |
| | | |
| | | public CA904_tagCGQueryBossInfo() |
| | | { |
| | | combineCmd = (ushort)0x1801; |
| | | _cmd = (ushort)0xA904; |
| | | } |
| | | |
| | | public override void WriteToBytes() |
| | | { |
| | | WriteBytes(Count, NetDataType.BYTE); |
| | | WriteBytes(BossIDList, NetDataType.DWORD, Count); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e8252f9152b018e4596b3d11fc2e9e12 |
| | | timeCreated: 1544085662 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 722e5e3d30096674e811f5bd191246a0 |
| | | folderAsset: yes |
| | | timeCreated: 1539228128 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a545fb3dcf719304fa74180c10219375 |
| | | folderAsset: yes |
| | | timeCreated: 1542357825 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | private void SetMidUI()
|
| | | {
|
| | | _describeText.alignment = TextAnchor.UpperLeft;
|
| | | if (itemPathModel.chinItemModel.Effect1 != 215)
|
| | | {
|
| | | _describeText.text = itemPathModel.GetAllInfoDes();
|
| | | }
|
| | | else
|
| | | string infoDes = itemPathModel.GetAllInfoDes();
|
| | | if (infoDes.Contains("{Exp}"))
|
| | | {
|
| | | ulong expValue = itemTipsModel.GetAddExpValue(itemPathModel.chinItemModel.EffectValueA1, itemPathModel.chinItemModel.EffectValueB1);
|
| | | _describeText.text = itemPathModel.GetAllInfoDes().Replace("{0}", UIHelper.ReplaceLargeNum(expValue));
|
| | | infoDes = infoDes.Replace("{Exp}", UIHelper.ReplaceLargeNum(expValue));
|
| | | }
|
| | | if (infoDes.Contains("{FightPower}"))
|
| | | {
|
| | | int fightPower = 0;
|
| | | itemTipsModel.TryGetFightPowerByItemId(itemPathModel.chinItemModel.ID, out fightPower);
|
| | | infoDes = infoDes.Replace("{FightPower}", fightPower.ToString());
|
| | | }
|
| | |
|
| | | _describeText.text = infoDes;
|
| | | }
|
| | |
|
| | | #region 点击事件
|
| | |
| | | [SerializeField] TimerBehaviour m_RebornTime;
|
| | | [SerializeField] Text m_Alive;
|
| | | [SerializeField] Text m_RebornAtOnce;
|
| | | [SerializeField] RebornRightNowBossInfoQuery m_BossInfoQuery;
|
| | |
|
| | | int bossId = 0;
|
| | | FindPreciousModel model { get { return ModelCenter.Instance.GetModel<FindPreciousModel>(); } }
|
| | |
| | | var config = Config.Instance.Get<NPCConfig>(bossId);
|
| | | m_Level.text = Language.Get("Z1024", config.NPCLV);
|
| | |
|
| | | m_BossInfoQuery.bossId = bossId;
|
| | | OnBossInfoUpdate(bossId);
|
| | | model.bossInfoUpdateEvent -= OnBossInfoUpdate;
|
| | | model.bossInfoUpdateEvent += OnBossInfoUpdate;
|
| | |
|
| | | m_MoveTo.RemoveAllListeners();
|
| | |
| | | var behaviour = behaviours[i];
|
| | | if (i < bosses.Count)
|
| | | {
|
| | | behaviour.Dispose();
|
| | | behaviour.Display(bosses[i], OnMoveToBoss);
|
| | | behaviour.gameObject.SetActive(true);
|
| | | }
|
| | |
| | | for (var i = 0; i < bossIds.Count; i++) |
| | | { |
| | | var bossId = bossIds[i]; |
| | | if (findPreciousModel.IsBossSubscribed(bossId)) |
| | | { |
| | | if (Config.Instance.ContainKey<DemonJarConfig>(bossId)) |
| | | { |
| | | var alive = findPreciousModel.IsBossAlive(bossId); |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | base.Display(_data);
|
| | | bossId = (int)_data;
|
| | |
|
| | | var bossInfoQuery = this.AddMissingComponent<RebornRightNowBossInfoQuery>();
|
| | | bossInfoQuery.bossId = bossId;
|
| | | findPreciousModel.bossSubscribeChangeEvent -= OnSubscribe;
|
| | | findPreciousModel.bossSubscribeChangeEvent += OnSubscribe;
|
| | | findPreciousModel.bossInfoUpdateEvent -= OnBossInfoUpdate;
|
| | |
| | | GameNetSystem.Instance.SendInfo(sendInfo);
|
| | | }
|
| | |
|
| | | public void RequestQueryBossInfo(int bossId)
|
| | | {
|
| | | var sendInfo = new CA904_tagCGQueryBossInfo();
|
| | | sendInfo.Count = 1;
|
| | | sendInfo.BossIDList = new uint[] { (uint)bossId };
|
| | | GameNetSystem.Instance.SendInfo(sendInfo);
|
| | | }
|
| | |
|
| | | public void OnPreciousDropRecordUpdate(HA003_tagUniversalGameRecInfo _serverInfo)
|
| | | {
|
| | | if (_serverInfo.Type != 25)
|
| New file |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Thursday, December 06, 2018 |
| | | //-------------------------------------------------------- |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using UnityEngine.UI; |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | |
| | | public class RebornRightNowBossInfoQuery : MonoBehaviour |
| | | { |
| | | public int bossId { get; set; } |
| | | |
| | | FindPreciousModel findPreciousModel { get { return ModelCenter.Instance.GetModel<FindPreciousModel>(); } } |
| | | bool isRebornRightNow { |
| | | get { |
| | | FindPreciousModel.BossInfo bossInfo = null; |
| | | if (findPreciousModel.TryGetBossInfo(bossId, out bossInfo)) |
| | | { |
| | | return !findPreciousModel.IsBossAlive(bossId) && TimeUtility.ServerNow > bossInfo.refreshTime; |
| | | } |
| | | else |
| | | { |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | |
| | | float rebornRightNowBossQueryTime = 0f; |
| | | private void OnEnable() |
| | | { |
| | | rebornRightNowBossQueryTime = 0f; |
| | | } |
| | | |
| | | private void LateUpdate() |
| | | { |
| | | if (Time.realtimeSinceStartup > rebornRightNowBossQueryTime) |
| | | { |
| | | if (isRebornRightNow) |
| | | { |
| | | rebornRightNowBossQueryTime = Time.realtimeSinceStartup + 5f; |
| | | findPreciousModel.RequestQueryBossInfo(bossId); |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f4bfabd35e5383641b417cc69d91d52f |
| | | timeCreated: 1544086386 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | CheckUselimit();
|
| | | }
|
| | |
|
| | | itemDesText.text = itemTipsModel.curAttrData.GetAllInfoDes();
|
| | | string infoDes = itemTipsModel.curAttrData.GetAllInfoDes();
|
| | | if (infoDes.Contains("{Exp}"))
|
| | | {
|
| | | ulong expValue = itemTipsModel.GetAddExpValue(itemTipsModel.curAttrData.itemConfig.EffectValueA1, itemTipsModel.curAttrData.itemConfig.EffectValueB1);
|
| | | infoDes = infoDes.Replace("{Exp}", UIHelper.ReplaceLargeNum(expValue));
|
| | | }
|
| | | if (infoDes.Contains("{FightPower}"))
|
| | | {
|
| | | int fightPower = 0;
|
| | | itemTipsModel.TryGetFightPowerByItemId(itemTipsModel.curAttrData.itemId, out fightPower);
|
| | | infoDes = infoDes.Replace("{FightPower}", fightPower.ToString());
|
| | | }
|
| | |
|
| | | itemDesText.text = infoDes;
|
| | | operateBtn.SetActive(false);
|
| | |
|
| | | CreateFuncBtn();
|
| | |
| | | itemCell.Init(cellModel);
|
| | |
|
| | | CheckUselimit();
|
| | | if(itemTipsModel.curAttrData.itemConfig.Effect1 != 215)
|
| | | {
|
| | | int type = 0;
|
| | | bool isContain = itemTipsModel.TryGetContainsParamsType(itemTipsModel.curAttrData.itemId,out type);
|
| | | if(isContain)
|
| | | {
|
| | | switch(type)
|
| | | {
|
| | | case 1:
|
| | | int fightPower = 0;
|
| | | itemTipsModel.TryGetFightPowerByItemId(itemTipsModel.curAttrData.itemId, out fightPower);
|
| | | itemDesText.text = itemTipsModel.curAttrData.GetAllInfoDes().Replace("{0}",fightPower.ToString());
|
| | | break;
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | itemDesText.text = itemTipsModel.curAttrData.GetAllInfoDes();
|
| | | }
|
| | | }
|
| | | else
|
| | |
|
| | | string infoDes = itemTipsModel.curAttrData.GetAllInfoDes();
|
| | | if(infoDes.Contains("{Exp}"))
|
| | | {
|
| | | ulong expValue = itemTipsModel.GetAddExpValue(itemTipsModel.curAttrData.itemConfig.EffectValueA1, itemTipsModel.curAttrData.itemConfig.EffectValueB1);
|
| | | itemDesText.text = itemTipsModel.curAttrData.GetAllInfoDes().Replace("{0}", UIHelper.ReplaceLargeNum(expValue));
|
| | | infoDes = infoDes.Replace("{Exp}", UIHelper.ReplaceLargeNum(expValue));
|
| | | }
|
| | | if(infoDes.Contains("{FightPower}"))
|
| | | {
|
| | | int fightPower = 0;
|
| | | itemTipsModel.TryGetFightPowerByItemId(itemTipsModel.curAttrData.itemId, out fightPower);
|
| | | infoDes = infoDes.Replace("{FightPower}", fightPower.ToString());
|
| | | }
|
| | |
|
| | | itemDesText.text = infoDes;
|
| | | operateBtn.SetActive(false);
|
| | |
|
| | | CreateFuncBtn();
|
| | |
| | | FuncConfigConfig EquipOutWordID = Config.Instance.Get<FuncConfigConfig>("EquipOutWordID");
|
| | | PeerlessEquipIds = ConfigParse.GetMultipleStr<int>(EquipOutWordID.Numerical1);
|
| | |
|
| | | FuncConfigConfig ItemTipsNum = Config.Instance.Get<FuncConfigConfig>("ItemTipsNum");
|
| | | JsonData itemParamsData = JsonMapper.ToObject(ItemTipsNum.Numerical1);
|
| | | itemParamsDict = new Dictionary<int, List<int>>();
|
| | | foreach (var type in itemParamsData.Keys)
|
| | | {
|
| | | List<int> list = new List<int>();
|
| | | itemParamsDict.Add(int.Parse(type),list);
|
| | | if(itemParamsData[type].IsArray)
|
| | | {
|
| | | for (int i = 0; i < itemParamsData[type].Count; i++)
|
| | | {
|
| | | int num = 0;
|
| | | int.TryParse(itemParamsData[type][i].ToString(),out num);
|
| | | list.Add(num);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | FuncConfigConfig legendAttrColor = Config.Instance.Get<FuncConfigConfig>("LegendAttrColor");
|
| | | equipLegendAttrTypeDict = new Dictionary<int, List<int>>();
|
| | | wingsLegendAttrColorDict = new Dictionary<int, Dictionary<int, string>>();
|
| | |
| | |
|
| | | private StringBuilder attrSB = new StringBuilder();
|
| | | private PlayerPropertyConfig playerProModel;
|
| | |
|
| | | public bool TryGetContainsParamsType(int param,out int _type)
|
| | | {
|
| | | _type = 0;
|
| | | foreach(var type in itemParamsDict.Keys)
|
| | | {
|
| | | var list = itemParamsDict[type];
|
| | | if(list.Contains(param))
|
| | | {
|
| | | _type = type;
|
| | | return true;
|
| | | }
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | #region 设置装备基础信息
|
| | | /// <summary>
|
| | |
| | |
|
| | | if (itemTipsModel.randomRuneIds.Contains(itemConfig.ID))
|
| | | {
|
| | | return string.Format(itemConfig.Description, GetExtraInfos());
|
| | | return itemConfig.Description.Replace("{Rune}", GetExtraInfos());
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | nameText.text = itemConfig.ItemName;
|
| | | ItemCellModel cellModel = new ItemCellModel(id, false, (ulong)BoxModel.selectDict[id]);
|
| | | itemBaisc.Init(cellModel);
|
| | | if (itemConfig.Effect1 == 220)
|
| | | {
|
| | | id = itemConfig.EffectValueA1;
|
| | | }
|
| | | int haveCnt = playerPack.GetItemCountByID(PackType.rptItem, id);
|
| | | if(haveCnt <= 0)
|
| | | {
|
| | |
| | |
|
| | | IEnumerator WaitAddTask(int MissionID, int MissionState)
|
| | | {
|
| | | yield return WaitingForSecondConst.WaitMS800;//缓冲一秒再进行
|
| | | yield return WaitingForSecondConst.WaitMS300;//缓冲0.3秒再进行
|
| | | var inDungeon = IsDungeon();
|
| | | TaskScheduling();
|
| | | if (WindowCenter.Instance.IsOpen<MainInterfaceWin>() && !inDungeon)
|
| | |
| | | case PromoteDetailType.GodWeapon:
|
| | | return magicianModel.magicianRedpoint.state == RedPointState.Simple;
|
| | | case PromoteDetailType.TreasurePotential:
|
| | | for (int k = 1; k < (int)TreasureCategory.Zerg; k++)
|
| | | {
|
| | | var list = treasureModel.GetTreasureCategory((TreasureCategory)k);
|
| | | if (list != null)
|
| | | {
|
| | | var list = treasureModel.GetTreasureCategory(TreasureCategory.Human);
|
| | | for (int j = 0; j < list.Count; j++)
|
| | | {
|
| | | Treasure treasure;
|
| | |
| | | && treasure.skillLevelUpRedpoint != null && treasure.skillLevelUpRedpoint.state == RedPointState.Simple)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | break;
|
| | |
| | | [SerializeField] RectTransform m_ContainerRuneSoul;
|
| | | [SerializeField] Text m_RuneSoulAdd;
|
| | |
|
| | | private List<bool> m_Checks = new List<bool>();
|
| | | private List<ushort> m_BreakRunes = new List<ushort>();
|
| | | private bool m_PlayerBreakEffect = false;
|
| | |
|
| | |
| | | }
|
| | | private void OnClickCheck(int type)
|
| | | {
|
| | | bool check = m_Checks[type - 1];
|
| | | bool check = model.IsQualityMark(type);
|
| | | OnCheck(type, !check);
|
| | | }
|
| | | private void OnCheck(int type, bool check)
|
| | | {
|
| | | m_Checks[type - 1] = check;
|
| | | m_CheckMarks[type - 1].gameObject.SetActive(m_Checks[type - 1]);
|
| | | model.SetQualityMark(type, check);
|
| | | m_CheckMarks[type - 1].gameObject.SetActive(model.IsQualityMark(type));
|
| | | for (int i = 0; i < model.runeBreakList.Count; i++)
|
| | | {
|
| | | RuneData _data = model.runeBreakList[i];
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | OnCheck(1, m_Checks[0]);
|
| | | OnCheck(2, m_Checks[1]);
|
| | | OnCheck(3, m_Checks[2]);
|
| | | OnCheck(4, m_Checks[3]);
|
| | | OnCheck(1, model.IsQualityMark(1));
|
| | | OnCheck(2, model.IsQualityMark(2));
|
| | | OnCheck(3, model.IsQualityMark(3));
|
| | | OnCheck(4, model.IsQualityMark(4));
|
| | | }
|
| | |
|
| | | IEnumerator Co_PlayEffect(float _t)
|
| | |
| | | {
|
| | | OnClickCheck(_type);
|
| | | });
|
| | | m_Checks.Add(i == 0);
|
| | | }
|
| | | m_JumpBtn0.onClick.AddListener(OnJumpRuneTower);
|
| | | m_JumpBtn1.onClick.AddListener(OnJumpRuneTower);
|
| | |
| | |
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChangeEvent;
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent += PlayerDataRefreshInfoEvent;
|
| | | StageManager.Instance.onStageLoadFinish += OnStageLoadFinish;
|
| | | }
|
| | |
|
| | | private void OnFuncStateChangeEvent(int func)
|
| | |
| | | {
|
| | | ClearRuneData();
|
| | | serverInited = false;
|
| | | }
|
| | |
|
| | | private void OnStageLoadFinish()
|
| | | {
|
| | | if (!(StageManager.Instance.CurrentStage is DungeonStage))
|
| | | {
|
| | | specialItemColorMark = false;
|
| | | }
|
| | | }
|
| | |
|
| | | public void OnPlayerLoginOk()
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | #region 符印分解选择品质记录
|
| | | bool specialItemColorMark = false;
|
| | | public bool IsQualityMark(int itemColor)
|
| | | {
|
| | | if (itemColor == 4)
|
| | | {
|
| | | return specialItemColorMark;
|
| | | }
|
| | | var playerId = PlayerDatas.Instance.baseData.PlayerID;
|
| | | return LocalSave.GetBool(StringUtility.Contact("RuneBreakSelect_", playerId, "_", itemColor), itemColor == 1);
|
| | | }
|
| | |
|
| | | public void SetQualityMark(int itemColor, bool mark)
|
| | | {
|
| | | if (itemColor == 4)
|
| | | {
|
| | | specialItemColorMark = mark;
|
| | | return;
|
| | | }
|
| | | var playerId = PlayerDatas.Instance.baseData.PlayerID;
|
| | | LocalSave.SetBool(StringUtility.Contact("RuneBreakSelect_", playerId, "_", itemColor), mark);
|
| | | }
|
| | | #endregion
|
| | |
|
| | | #region 符印合成
|
| | | public int GetMaxLevelRuneCnt(int _id, out RuneData _runeData)
|
| | | {
|
| | |
| | |
|
| | | CheckUselimit();
|
| | |
|
| | | if (itemTipsModel.curAttrData.itemConfig.Effect1 != 215)
|
| | | {
|
| | | int type = 0;
|
| | | bool isContain = itemTipsModel.TryGetContainsParamsType(itemTipsModel.curAttrData.itemId, out type);
|
| | | if (isContain)
|
| | | {
|
| | | switch (type)
|
| | | {
|
| | | case 1:
|
| | | int fightPower = 0;
|
| | | itemTipsModel.TryGetFightPowerByItemId(itemTipsModel.curAttrData.itemId, out fightPower);
|
| | | itemDesText.text = itemTipsModel.curAttrData.itemConfig.Description.Replace("{0}",fightPower.ToString());
|
| | | break;
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | itemDesText.text = itemTipsModel.curAttrData.itemConfig.Description;
|
| | | }
|
| | | |
| | | }
|
| | | else
|
| | | string infoDes = itemTipsModel.curAttrData.GetAllInfoDes();
|
| | | if (infoDes.Contains("{Exp}"))
|
| | | {
|
| | | ulong expValue = itemTipsModel.GetAddExpValue(itemTipsModel.curAttrData.itemConfig.EffectValueA1, itemTipsModel.curAttrData.itemConfig.EffectValueB1);
|
| | | itemDesText.text = itemTipsModel.curAttrData.itemConfig.Description.Replace("{0}", UIHelper.ReplaceLargeNum(expValue));
|
| | | infoDes = infoDes.Replace("{Exp}", UIHelper.ReplaceLargeNum(expValue));
|
| | | }
|
| | | if (infoDes.Contains("{FightPower}"))
|
| | | {
|
| | | int fightPower = 0;
|
| | | itemTipsModel.TryGetFightPowerByItemId(itemTipsModel.curAttrData.itemId, out fightPower);
|
| | | infoDes = infoDes.Replace("{FightPower}", fightPower.ToString());
|
| | | }
|
| | | itemDesText.text = infoDes;
|
| | |
|
| | | if (itemTipsModel.curAttrData.itemConfig.ExpireTime > 0)
|
| | | {
|
| | |
| | | DisplayUseLimit(itemConfig);
|
| | | }
|
| | |
|
| | | m_Description.text = itemTipsModel.curAttrData.GetAllInfoDes();
|
| | | string infoDes = itemTipsModel.curAttrData.GetAllInfoDes();
|
| | | if (infoDes.Contains("{Exp}"))
|
| | | {
|
| | | ulong expValue = itemTipsModel.GetAddExpValue(itemTipsModel.curAttrData.itemConfig.EffectValueA1, itemTipsModel.curAttrData.itemConfig.EffectValueB1);
|
| | | infoDes = infoDes.Replace("{Exp}", UIHelper.ReplaceLargeNum(expValue));
|
| | | }
|
| | | if (infoDes.Contains("{FightPower}"))
|
| | | {
|
| | | int fightPower = 0;
|
| | | itemTipsModel.TryGetFightPowerByItemId(itemTipsModel.curAttrData.itemId, out fightPower);
|
| | | infoDes = infoDes.Replace("{FightPower}", fightPower.ToString());
|
| | | }
|
| | |
|
| | | m_Description.text = infoDes;
|
| | |
|
| | | int useCnt = BoxModel.GetUseCntByID(itemTipsModel.curAttrData.itemId);
|
| | | m_UseTimes.gameObject.SetActive(itemConfig.MaxSkillCnt > 0);
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | TreasureModel treasureModel
|
| | | {
|
| | | get { return ModelCenter.Instance.GetModel<TreasureModel>(); }
|
| | | }
|
| | |
|
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | |
| | | WindowCenter.Instance.Open<RolePanel>(false, 3);
|
| | | break;
|
| | | case RolePromoteModel.PromoteDetailType.TreasurePotential:
|
| | | WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.Treasure);
|
| | | treasureModel.currentCategory = TreasureCategory.Human;
|
| | | var list = treasureModel.GetTreasureCategory(TreasureCategory.Human);
|
| | | var gotoId = list[0];
|
| | | for (int i = 0; i < list.Count; i++)
|
| | | {
|
| | | Treasure treasure;
|
| | | if (treasureModel.TryGetTreasure(list[i], out treasure))
|
| | | {
|
| | | if (treasure.state == TreasureState.Collected && treasure.skillLevelUpRedpoint != null &&
|
| | | treasure.skillLevelUpRedpoint.state == RedPointState.Simple)
|
| | | {
|
| | | gotoId = list[i];
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | treasureModel.selectedTreasure = gotoId;
|
| | | WindowCenter.Instance.Open<TreasureBaseWin>();
|
| | | break;
|
| | | case RolePromoteModel.PromoteDetailType.RolePromote:
|
| | | WindowCenter.Instance.Open<RolePromoteWin>();
|
| | |
| | | [SerializeField] TimerBehaviour m_TimeBehaviour;
|
| | | [SerializeField] Text m_RebornTime;
|
| | | [SerializeField] Text m_NpcAppearTxt;
|
| | | [SerializeField] RebornRightNowBossInfoQuery m_BossInfoQuery;
|
| | | [SerializeField] Text m_FuncTxt;
|
| | |
|
| | | bool secondTextInited = false;
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | m_BossInfoQuery.bossId = npcId;
|
| | | FindPreciousModel.BossInfo _bossInfo;
|
| | | if (findPreciousModel.TryGetBossInfo(npcId, out _bossInfo))
|
| | | {
|
| | |
| | | {
|
| | | m_RebornTime.gameObject.SetActive(false);
|
| | | }
|
| | |
|
| | | m_NpcAppearTxt.gameObject.SetActive(!m_RebornTime.gameObject.activeSelf);
|
| | | }
|
| | |
|