|
@@ -3,7 +3,6 @@ using ET;
|
|
using FairyGUI;
|
|
using FairyGUI;
|
|
using UI.CommonGame;
|
|
using UI.CommonGame;
|
|
using UI.Task;
|
|
using UI.Task;
|
|
-using UnityEngine;
|
|
|
|
|
|
|
|
namespace GFGGame
|
|
namespace GFGGame
|
|
{
|
|
{
|
|
@@ -181,8 +180,7 @@ namespace GFGGame
|
|
|
|
|
|
private void OnBtnGoClick(EventContext context)
|
|
private void OnBtnGoClick(EventContext context)
|
|
{
|
|
{
|
|
- if (!(context.sender is GObject btnGo)) return;
|
|
|
|
- var taskCfg = btnGo.data as TaskCfg;
|
|
|
|
|
|
+ if (!(context.sender is GObject { data: TaskCfg taskCfg })) return;
|
|
//功能未开放
|
|
//功能未开放
|
|
if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(taskCfg.jumpId)) return;
|
|
if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(taskCfg.jumpId)) return;
|
|
Hide();
|
|
Hide();
|