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
0
Issues
0
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
Xu Chenxi
ygopro2
Commits
90e2cdc3
Commit
90e2cdc3
authored
May 12, 2019
by
Unicorn369
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New version
parent
44e0083e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
19 deletions
+22
-19
.gitignore
.gitignore
+2
-1
Assets/SibylSystem/Menu/Menu.cs
Assets/SibylSystem/Menu/Menu.cs
+7
-7
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+11
-9
Assets/StreamingAssets/ygopro2-data.zip
Assets/StreamingAssets/ygopro2-data.zip
+0
-0
ProjectSettings/ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+2
-2
No files found.
.gitignore
View file @
90e2cdc3
...
...
@@ -33,7 +33,6 @@ sysinfo.txt
# Builds
*.apk
*.unitypackage
Library_
Temp/
ygopro.jks
AI_core_vs2017solution/bin/
...
...
@@ -49,6 +48,7 @@ deck/
expansions/
pack/
picture/
puzzle/
replay/
sound/
texture/
...
...
@@ -62,4 +62,5 @@ commamd.shell
AI_core_vs2017solution/core.VC.db
AI_core_vs2017solution/core.VC.VC.opendb
AI_core_vs2017solution/System.Servicemodel.Faltexception.dll
[Ll]ibrary_/
Assets/StreamingAssets/update.zip*
Assets/SibylSystem/Menu/Menu.cs
View file @
90e2cdc3
...
...
@@ -145,16 +145,16 @@ public class Menu : WindowServantSP
void
onClickDownload
()
{
#if UNITY_EDITOR || UNITY_STANDALONE_WIN //编译器、Windows
Application
.
OpenURL
(
"https://github.com/Unicorn369/
pro2_android_closeup/releases/tag/1.0
"
);
Application
.
OpenURL
(
"https://github.com/Unicorn369/
closeup_mobile/releases/tag/0.1
"
);
#elif UNITY_ANDROID //Android
AndroidJavaObject
jo
=
new
AndroidJavaObject
(
"cn.unicorn369.library.API"
);
if
(!
File
.
Exists
(
"updates/closeup_
version1.4
.txt"
))
{
//用于检查更新
if
(
File
.
Exists
(
"closeup_
version1.4
.zip"
))
{
//如果有则直接解压
jo
.
Call
(
"doExtractZipFile"
,
"closeup_
version1.4
.zip"
,
Program
.
ANDROID_GAME_PATH
);
}
else
if
(
File
.
Exists
(
"updates/closeup_
version1.3
.txt"
)){
//如果有则下载更新包
jo
.
Call
(
"doDownloadZipFile"
,
"https://github.com/Unicorn369/
pro2_android_closeup/releases/download/1.0/up_closeup_version1.4
.zip"
);
if
(!
File
.
Exists
(
"updates/closeup_
0.1
.txt"
))
{
//用于检查更新
if
(
File
.
Exists
(
"closeup_
0.1
.zip"
))
{
//如果有则直接解压
jo
.
Call
(
"doExtractZipFile"
,
"closeup_
0.1
.zip"
,
Program
.
ANDROID_GAME_PATH
);
}
else
if
(
File
.
Exists
(
"updates/closeup_
0.1
.txt"
)){
//如果有则下载更新包
jo
.
Call
(
"doDownloadZipFile"
,
"https://github.com/Unicorn369/
closeup_mobile/releases/download/0.1/closeup_0.1
.zip"
);
}
else
{
//否则下载并解压,锁定目录:ANDROID_GAME_PATH
jo
.
Call
(
"doDownloadZipFile"
,
"https://github.com/Unicorn369/
pro2_android_closeup/releases/download/1.0/closeup_version1.4
.zip"
);
jo
.
Call
(
"doDownloadZipFile"
,
"https://github.com/Unicorn369/
closeup_mobile/releases/download/0.1/closeup_0.1
.zip"
);
}
}
else
{
jo
.
Call
(
"showToast"
,
"已是最新,无需再次下载!"
);
...
...
Assets/SibylSystem/Program.cs
View file @
90e2cdc3
...
...
@@ -301,7 +301,7 @@ public class Program : MonoBehaviour
*/
ANDROID_GAME_PATH
=
jo
.
Call
<
string
>(
"GamePath"
,
"/ygopro2/"
);
if
(!
File
.
Exists
(
ANDROID_GAME_PATH
+
"updates/ver
sion2.3
.txt"
))
if
(!
File
.
Exists
(
ANDROID_GAME_PATH
+
"updates/ver
_1.034.9
.txt"
))
{
string
filePath
=
Application
.
streamingAssetsPath
+
"/ygopro2-data.zip"
;
var
www
=
new
WWW
(
filePath
);
...
...
@@ -321,7 +321,7 @@ public class Program : MonoBehaviour
ExtractZipFile
(
bytes
,
ANDROID_GAME_PATH
);
}
/* //选择性更新(用于额外打补丁)
if (!File.Exists(ANDROID_GAME_PATH + "updates/ver
sion2.3.2
.txt"))
if (!File.Exists(ANDROID_GAME_PATH + "updates/ver
_1.034.9-fix1
.txt"))
{
string filePath = Application.streamingAssetsPath + "/update.zip";
var www = new WWW(filePath);
...
...
@@ -336,7 +336,7 @@ public class Program : MonoBehaviour
#elif UNITY_IPHONE //iPhone
string
GamePaths
=
Application
.
persistentDataPath
+
"/ygopro2/"
;
if
(!
File
.
Exists
(
GamePaths
+
"updates/ver
sion2.3
.txt"
))
if
(!
File
.
Exists
(
GamePaths
+
"updates/ver
_1.034.9
.txt"
))
{
string
filePath
=
Application
.
streamingAssetsPath
+
"/ygopro2-data.zip"
;
ExtractZipFile
(
System
.
IO
.
File
.
ReadAllBytes
(
filePath
),
GamePaths
);
...
...
@@ -422,16 +422,16 @@ public class Program : MonoBehaviour
loadResources
();
#if !UNITY_EDITOR && UNITY_ANDROID //Android Java Test
if
(!
File
.
Exists
(
"updates/image_
version1.3
.txt"
))
//用于检查更新
if
(!
File
.
Exists
(
"updates/image_
0.1
.txt"
))
//用于检查更新
{
if
(
File
.
Exists
(
"pics.zip"
))
{
jo
.
Call
(
"doExtractZipFile"
,
"pics.zip"
,
ANDROID_GAME_PATH
);
File
.
Copy
(
"updates/ver
sion2.3.txt"
,
"updates/image_version1.3
.txt"
,
true
);
}
else
if
(
File
.
Exists
(
ANDROID_GAME_PATH
+
"../ygocore/pics.zip"
))
{
File
.
Copy
(
"updates/ver
_1.034.9.txt"
,
"updates/image_0.1
.txt"
,
true
);
}
else
if
(
File
.
Exists
(
ANDROID_GAME_PATH
+
"../ygocore/pics.zip"
))
{
//YGOMobile
jo
.
Call
(
"doExtractZipFile"
,
ANDROID_GAME_PATH
+
"../ygocore/pics.zip"
,
ANDROID_GAME_PATH
);
File
.
Copy
(
"updates/ver
sion2.3.txt"
,
"updates/image_version1.3
.txt"
,
true
);
File
.
Copy
(
"updates/ver
_1.034.9.txt"
,
"updates/image_0.1
.txt"
,
true
);
}
else
{
jo
.
Call
(
"doDownloadZipFile"
,
"https://github.com/Unicorn369/
pro2_android_closeup/releases/download/1.0
/pics.zip"
);
jo
.
Call
(
"doDownloadZipFile"
,
"https://github.com/Unicorn369/
closeup_mobile/releases/download/0.1
/pics.zip"
);
}
}
...
...
@@ -1039,7 +1039,9 @@ public class Program : MonoBehaviour
_padScroll
=
0
;
}
GUI
.
Label
(
new
Rect
(
10
,
5
,
200
,
200
),
"[Ver 2.3.2] "
+
"FPS: "
+
m_FPS
);
string
FPS
=
m_FPS
.
ToString
();
try
{
FPS
=
FPS
.
Substring
(
0
,
5
);
}
catch
{}
GUI
.
Label
(
new
Rect
(
10
,
5
,
200
,
200
),
"[Ver 1.034.9] "
+
"FPS: "
+
FPS
);
}
void
Update
()
...
...
Assets/StreamingAssets/ygopro2-data.zip
View file @
90e2cdc3
No preview for this file type
ProjectSettings/ProjectSettings.asset
View file @
90e2cdc3
...
...
@@ -123,7 +123,7 @@ PlayerSettings:
16:10:
1
16:9:
1
Others
:
1
bundleVersion
:
2.3.2 (1.034.9)
bundleVersion
:
1.034.9
preloadedAssets
:
[]
metroInputSource
:
0
m_HolographicPauseOnTrackingLoss
:
1
...
...
@@ -148,7 +148,7 @@ PlayerSettings:
tvOS
:
cn.ygopro2.ygopro2android
buildNumber
:
iOS
:
AndroidBundleVersionCode
:
1
7
AndroidBundleVersionCode
:
1
8
AndroidMinSdkVersion
:
16
AndroidTargetSdkVersion
:
0
AndroidPreferredInstallLocation
:
0
...
...
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