|
@@ -329,6 +329,8 @@ namespace GFGGame
|
|
|
indexX = 0;
|
|
|
indexY = 0;
|
|
|
//获得奖励
|
|
|
+ idList = MiniGameDateManager.Instance.GetIdListToLL();
|
|
|
+ UpdateTask();
|
|
|
}
|
|
|
}
|
|
|
private async void OnClickAFuBtn()
|
|
@@ -365,15 +367,13 @@ namespace GFGGame
|
|
|
//if (idList[x][y] == 0)
|
|
|
if (x == 4 && y == 0)
|
|
|
{
|
|
|
- Debug.LogError("位置错误");
|
|
|
- return;
|
|
|
+ y = 1;
|
|
|
}
|
|
|
else if (x == 4 && y == 4)
|
|
|
{
|
|
|
- Debug.LogError("位置错误");
|
|
|
- return;
|
|
|
+ y = 3;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
idList[x][y] = num;
|
|
|
itemList[x][y].data = num;
|
|
|
itemList[x][y].GetChild("icon").icon = ResPathUtil.GetMiniGamePicPath(MergeCfgArray.Instance.GetCfgByresTypeAndmaterialld(_res, num).resName, "MergeGame");
|
|
@@ -422,13 +422,11 @@ namespace GFGGame
|
|
|
//if (idList[x][y] == 0)
|
|
|
if(x == 4 && y == 0)
|
|
|
{
|
|
|
- Debug.LogError("位置错误");
|
|
|
- return;
|
|
|
+ y = 1;
|
|
|
}
|
|
|
else if(x== 4 && y== 4)
|
|
|
{
|
|
|
- Debug.LogError("位置错误");
|
|
|
- return;
|
|
|
+ y = 3;
|
|
|
}
|
|
|
|
|
|
idList[x][y] = num;
|
|
@@ -516,6 +514,11 @@ namespace GFGGame
|
|
|
//提交任务
|
|
|
private async void SubmitTask()
|
|
|
{
|
|
|
+ if (!InspectionTasks())
|
|
|
+ {
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("提交材料不足!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
bool result = await MiniGameProxy.ReqMergeGameLevelPass(taskId);
|
|
|
if(result)
|
|
|
{
|