Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hex
ygopro2
Commits
db813c4d
Commit
db813c4d
authored
Aug 06, 2025
by
hex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix superpre cards download
parent
e4c4c727
Pipeline
#39963
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
14 deletions
+21
-14
Assets/ArtSystem/YGOPro1/YGO1superShower.cs
Assets/ArtSystem/YGOPro1/YGO1superShower.cs
+12
-9
Assets/SibylSystem/Menu/Menu.cs
Assets/SibylSystem/Menu/Menu.cs
+9
-5
No files found.
Assets/ArtSystem/YGOPro1/YGO1superShower.cs
View file @
db813c4d
using
UnityEngine
;
using
System.Collections
;
public
class
YGO1superShower
:
MonoBehaviour
{
public
class
YGO1superShower
:
MonoBehaviour
{
public
UITexture
card
;
public
UITexture
closeup
;
// Use this for initialization
void
Start
()
{
}
// Update is called once per frame
void
Update
()
{
}
void
Start
()
{
}
// Update is called once per frame
void
Update
()
{
}
}
Assets/SibylSystem/Menu/Menu.cs
View file @
db813c4d
...
...
@@ -193,7 +193,7 @@ public class Menu : WindowServantSP
// 2. 使用 DownloadFileWithHeadCheck 下载文件
bool
downloadCompleted
=
false
;
bool
fileExistedBefore
=
File
.
Exists
(
ypkFilePath
)
;
bool
newVersionDownloaded
=
false
;
int
lastReportedProgress
=
0
;
// 用于控制进度报告的频率
yield
return
Program
.
I
().
StartCoroutine
(
UnityFileDownloader
.
DownloadFileWithHeadCheck
(
...
...
@@ -205,6 +205,11 @@ public class Menu : WindowServantSP
},
(
progress
)
=>
{
if
(!
newVersionDownloaded
)
{
newVersionDownloaded
=
true
;
Program
.
PrintToChat
(
"发现新版本,开始下载..."
);
}
int
currentProgress
=
Mathf
.
FloorToInt
(
progress
*
100
);
if
(
currentProgress
>=
lastReportedProgress
+
10
)
{
...
...
@@ -218,14 +223,13 @@ public class Menu : WindowServantSP
if
(!
downloadCompleted
)
{
Program
.
PrintToChat
(
"超先行卡更新失败,请检查网络连接或稍后再试。"
);
isDownloadingSuperPre
=
false
;
yield
break
;
// 提前退出协程
}
bool
fileExistsAfter
=
File
.
Exists
(
ypkFilePath
);
if
(!
fileExistedBefore
&&
fileExistsAfter
)
if
(
newVersionDownloaded
)
{
Program
.
PrintToChat
(
"
发现新版本,
下载完成,开始解压。"
);
Program
.
PrintToChat
(
"下载完成,开始解压。"
);
yield
return
null
;
try
{
...
...
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