Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
T
tuseGameColor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shujianhe
tuseGameColor
Commits
d8143809
Commit
d8143809
authored
Aug 17, 2023
by
JiangWanZhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加载或者下载完成后新加一个方法表示开始游戏
parent
d051a2fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
mainGameView.cs
Assets/scripts/common/mainGameView.cs
+17
-0
No files found.
Assets/scripts/common/mainGameView.cs
View file @
d8143809
...
@@ -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
()
{
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment