Files
JJBB/Assets/Project/Script/GUI/StroyCopy/BuffTestingCopyPanel.cs

77 lines
2.6 KiB
C#
Raw Normal View History

2024-08-23 15:49:34 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class BuffTestingCopyPanel : TestingCopyBase
{
// 一下代码迁移到 基类
//private List<CopyOnceReward> onceRewards;
//public TestingRewardItem onceRewardItem;
//public Text onceRewardsDesc;
//public Button getOnceRewardBtn;
//public GameObject cantGetTips;
//public override void OnPacketRet(RetTestingCopyInfo packet)
//{
// _PacketBestassedLevelList = new List<int>();
// for (int index = 0; index < packet._BestPassedLevelList.Count; index++)
// {
// _PacketBestassedLevelList.Add(int.Parse(packet._BestPassedLevelList[index]));
// }
// ShowDiffcultyBtns(packet._UnLockDiffcultyLevel);
// SetRemainChallengeTimes(packet._RemainTimes);
// if (packet._Reward != null)
// {
// onceRewards = packet._Reward;
// }
// OnDiffcultyBtnClick(_CurSelectedDiffcultyType);
//}
//// 显示当前难度的一次性奖励dif 难度
//private void ShowOnceAward(int dif)
//{
// if (onceRewards != null && dif < onceRewards.Count)
// {
// TestingRewardItemInfo info = new TestingRewardItemInfo(onceRewards[dif]._ItemID, onceRewards[dif]._ItemNum);
// Hashtable hash = new Hashtable() { { "InitObj", info } };
// onceRewardItem.Show(hash);
// onceRewardsDesc.text = string.Format("首次通关{0}层可获得奖励", onceRewards[dif]._Layer);
// getOnceRewardBtn.gameObject.SetActive(onceRewards[dif]._RewardState == 1);
// cantGetTips.SetActive(onceRewards[dif]._RewardState == 0);
// }
// else
// {
// onceRewardsDesc.gameObject.SetActive(false);
// onceRewardItem.gameObject.SetActive(false);
// getOnceRewardBtn.gameObject.SetActive(false);
// cantGetTips.SetActive(false);
// }
//}
//public override void OnDiffcultyBtnClick(int _Index)
//{
// _CurSelectedDiffcultyType = _Index;
// for (int index = 0; index < _DiffcultyBtnList.Count; index++)
// {
// _DiffcultyMarkIcon[index].SetActive(index == _Index);
// }
// ShowCurDiffcultyTypeBestpassedLevel();
// ShowOnceAward(_CurSelectedDiffcultyType);
//}
//public void OnOnceAwardBtnClick()
//{
// ReqGetCopyOnceReward req = new ReqGetCopyOnceReward();
// req._FubenId = this._FubenId;
// req._Difficult = _CurSelectedDiffcultyType;
// req._NodeId = onceRewards[_CurSelectedDiffcultyType]._NodeId;
// req.SendMsg();
//}
}