|
@@ -11,7 +11,7 @@ namespace GFGGame
|
|
|
{
|
|
|
private UI_CombTaskUI _ui;
|
|
|
private List<TaskCfg> _cfgs;
|
|
|
- private int funcType = TaskType.Daily;
|
|
|
+ private int funcType = TaskFuncType.Daily;
|
|
|
|
|
|
public override void Dispose()
|
|
|
{
|
|
@@ -97,10 +97,10 @@ namespace GFGGame
|
|
|
{
|
|
|
0 =>
|
|
|
//每日任务
|
|
|
- TaskType.Daily,
|
|
|
+ TaskFuncType.Daily,
|
|
|
1 =>
|
|
|
//织造任务
|
|
|
- TaskType.BattlePass,
|
|
|
+ TaskFuncType.BattlePass,
|
|
|
_ => funcType
|
|
|
};
|
|
|
//更新任务列表
|
|
@@ -114,7 +114,7 @@ namespace GFGGame
|
|
|
DailyTaskDataManager.Instance.GetShowLivenessBoxNum();
|
|
|
_ui.m_LivenessProcess.target.max = 100;
|
|
|
_ui.m_LivenessProcess.target.value = liveness;
|
|
|
- var cfgs = TaskActiveRewardCfgArray.Instance.GetCfgsByfuncType(TaskType.Daily);
|
|
|
+ var cfgs = TaskActiveRewardCfgArray.Instance.GetCfgsByfuncType(TaskFuncType.Daily);
|
|
|
for (var i = 0; i < cfgs.Count; i++)
|
|
|
{
|
|
|
var boxId = i + 1;
|
|
@@ -184,7 +184,7 @@ namespace GFGGame
|
|
|
item.m_listTaskReward.data = reward;
|
|
|
item.m_listTaskReward.numItems = reward.Length;
|
|
|
var isBuy = BattlePassTaskDataManager.Instance.GetIsBuy();
|
|
|
- bool canGet = item.m_c1.selectedIndex == 1 && (funcType != TaskType.BattlePass || funcType == TaskType.BattlePass && isBuy);
|
|
|
+ bool canGet = item.m_c1.selectedIndex == 1 && (funcType != TaskFuncType.BattlePass || funcType == TaskFuncType.BattlePass && isBuy);
|
|
|
RedDotController.Instance.SetComRedDot(item.m_GetRewardBt, canGet);
|
|
|
UI_TaskListItem.ProxyEnd();
|
|
|
}
|
|
@@ -204,7 +204,7 @@ namespace GFGGame
|
|
|
private async void OnBtnGetClick(EventContext context)
|
|
|
{
|
|
|
if (!(context.sender is GObject btnGet)) return;
|
|
|
- if (funcType == TaskType.BattlePass)
|
|
|
+ if (funcType == TaskFuncType.BattlePass)
|
|
|
{
|
|
|
//检查通行证是否开启
|
|
|
var isBuy = BattlePassTaskDataManager.Instance.GetIsBuy();
|
|
@@ -238,7 +238,7 @@ namespace GFGGame
|
|
|
private async void OnBtnGetAllClick()
|
|
|
{
|
|
|
//通用任务一键领奖
|
|
|
- if (funcType == TaskType.BattlePass)
|
|
|
+ if (funcType == TaskFuncType.BattlePass)
|
|
|
{
|
|
|
//检查通行证是否开启
|
|
|
var isBuy = BattlePassTaskDataManager.Instance.GetIsBuy();
|