Commit d8143809 authored by JiangWanZhi's avatar JiangWanZhi

加载或者下载完成后新加一个方法表示开始游戏

parent d051a2fa
...@@ -69,6 +69,8 @@ public class mainGameView : MonoBehaviour //大图的处理、具体的玩法 ...@@ -69,6 +69,8 @@ public class mainGameView : MonoBehaviour //大图的处理、具体的玩法
} }
} }
private List<string> DownLoadFileinfos = new List<string>(); //存放jpg、png、json文件的路径,三个文件都加进来了,说明加载或者是解压完了
public void loopAddTaskBack(int count,int step,TaskItemBack back, System.Object[] param = null) public void loopAddTaskBack(int count,int step,TaskItemBack back, System.Object[] param = null)
{ {
List<System.Object> newParams = null; List<System.Object> newParams = null;
...@@ -586,6 +588,12 @@ public class mainGameView : MonoBehaviour //大图的处理、具体的玩法 ...@@ -586,6 +588,12 @@ public class mainGameView : MonoBehaviour //大图的处理、具体的玩法
} }
else else
{ {
DownLoadFileinfos.Add(url);
if (DownLoadFileinfos.Count >= 3)
{
StartGame();
}
return 0; //这里下载好了就不进行操作了 return 0; //这里下载好了就不进行操作了
utilsTools.saveImageDefaultMetaInfoToPath(localpath); utilsTools.saveImageDefaultMetaInfoToPath(localpath);
utilsTools.sendEventObjectParams(EventName.Event.Event_inGameLoadingValue, 8f, false); utilsTools.sendEventObjectParams(EventName.Event.Event_inGameLoadingValue, 8f, false);
...@@ -632,6 +640,11 @@ public class mainGameView : MonoBehaviour //大图的处理、具体的玩法 ...@@ -632,6 +640,11 @@ public class mainGameView : MonoBehaviour //大图的处理、具体的玩法
} }
else else
{ {
DownLoadFileinfos.Add(url);
if (DownLoadFileinfos.Count >= 3)
{
StartGame();
}
return 0; //这里下载好了就不进行操作了 return 0; //这里下载好了就不进行操作了
utilsTools.setGDataByKey("downJsonBack", utilsTools.getTotalMillisecond()); utilsTools.setGDataByKey("downJsonBack", utilsTools.getTotalMillisecond());
utilsTools.sendEventObjectParams(EventName.Event.Event_inGameLoadingValue, 8f, false); utilsTools.sendEventObjectParams(EventName.Event.Event_inGameLoadingValue, 8f, false);
...@@ -1676,4 +1689,8 @@ public class mainGameView : MonoBehaviour //大图的处理、具体的玩法 ...@@ -1676,4 +1689,8 @@ public class mainGameView : MonoBehaviour //大图的处理、具体的玩法
} }
} }
public void StartGame()
{
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment