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
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
nanahira
ygopro2
Commits
05fc925a
Commit
05fc925a
authored
Mar 31, 2019
by
Unicorn369
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set Version to 2.2.2
parent
db749988
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
19 deletions
+30
-19
.gitignore
.gitignore
+1
-0
Assets/SibylSystem/Menu/Menu.cs
Assets/SibylSystem/Menu/Menu.cs
+6
-6
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+16
-10
Assets/SibylSystem/Room/RoomList.cs
Assets/SibylSystem/Room/RoomList.cs
+2
-2
Assets/StreamingAssets/ygopro2-data.zip
Assets/StreamingAssets/ygopro2-data.zip
+0
-0
Assets/StreamingAssets/ygopro2-data.zip.meta
Assets/StreamingAssets/ygopro2-data.zip.meta
+0
-0
ProjectSettings/ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+1
-1
README.md
README.md
+4
-0
No files found.
.gitignore
View file @
05fc925a
...
...
@@ -60,3 +60,4 @@ strings.conf
AI_core_vs2017solution/core.VC.db
AI_core_vs2017solution/core.VC.VC.opendb
AI_core_vs2017solution/System.Servicemodel.Faltexception.dll
Assets/StreamingAssets/update.zip*
Assets/SibylSystem/Menu/Menu.cs
View file @
05fc925a
...
...
@@ -144,13 +144,13 @@ public class Menu : WindowServantSP
Application
.
OpenURL
(
"https://github.com/Unicorn369/pro2_android_closeup/releases/tag/1.0"
);
#elif UNITY_ANDROID //Android
AndroidJavaObject
jo
=
new
AndroidJavaObject
(
"cn.unicorn369.library.API"
);
if
(!
File
.
Exists
(
"updates/closeup_version1.
1
.txt"
))
{
//用于检查更新
if
(
File
.
Exists
(
"closeup_version1.
1
.zip"
))
{
//如果有则直接解压
jo
.
Call
(
"doExtractZipFile"
,
"closeup_version1.
1
.zip"
,
Program
.
ANDROID_GAME_PATH
);
}
else
if
(
File
.
Exists
(
"updates/closeup_version1.
0
.txt"
)){
//如果有则下载更新包
jo
.
Call
(
"doDownloadZipFile"
,
"https://github.com/Unicorn369/pro2_android_closeup/releases/download/1.0/up_closeup_version1.
1
.zip"
);
if
(!
File
.
Exists
(
"updates/closeup_version1.
2
.txt"
))
{
//用于检查更新
if
(
File
.
Exists
(
"closeup_version1.
2
.zip"
))
{
//如果有则直接解压
jo
.
Call
(
"doExtractZipFile"
,
"closeup_version1.
2
.zip"
,
Program
.
ANDROID_GAME_PATH
);
}
else
if
(
File
.
Exists
(
"updates/closeup_version1.
1
.txt"
)){
//如果有则下载更新包
jo
.
Call
(
"doDownloadZipFile"
,
"https://github.com/Unicorn369/pro2_android_closeup/releases/download/1.0/up_closeup_version1.
2
.zip"
);
}
else
{
//否则下载并解压,锁定目录:ANDROID_GAME_PATH
jo
.
Call
(
"doDownloadZipFile"
,
"https://github.com/Unicorn369/pro2_android_closeup/releases/download/1.0/closeup_version1.
1
.zip"
);
jo
.
Call
(
"doDownloadZipFile"
,
"https://github.com/Unicorn369/pro2_android_closeup/releases/download/1.0/closeup_version1.
2
.zip"
);
}
}
else
{
jo
.
Call
(
"showToast"
,
"已下载,无需再次下载!"
);
...
...
Assets/SibylSystem/Program.cs
View file @
05fc925a
...
...
@@ -304,7 +304,7 @@ public class Program : MonoBehaviour
Screen
.
sleepTimeout
=
SleepTimeout
.
NeverSleep
;
if
(!
File
.
Exists
(
ANDROID_GAME_PATH
+
"updates/version2.0.txt"
))
{
string
filePath
=
Application
.
streamingAssetsPath
+
"/ygopro2.zip"
;
string
filePath
=
Application
.
streamingAssetsPath
+
"/ygopro2
-data
.zip"
;
var
www
=
new
WWW
(
filePath
);
while
(!
www
.
isDone
)
{
}
byte
[]
bytes
=
www
.
bytes
;
...
...
@@ -322,6 +322,16 @@ public class Program : MonoBehaviour
ExtractZipFile
(
bytes
,
ANDROID_GAME_PATH
);
}
if
(!
File
.
Exists
(
ANDROID_GAME_PATH
+
"updates/version2.2.2.txt"
))
{
string
filePath
=
Application
.
streamingAssetsPath
+
"/update.zip"
;
var
www
=
new
WWW
(
filePath
);
while
(!
www
.
isDone
)
{
}
byte
[]
bytes
=
www
.
bytes
;
ExtractZipFile
(
bytes
,
ANDROID_GAME_PATH
);
//File.Create(ANDROID_GAME_PATH + ".nomedia");
}
Environment
.
CurrentDirectory
=
ANDROID_GAME_PATH
;
System
.
IO
.
Directory
.
SetCurrentDirectory
(
ANDROID_GAME_PATH
);
...
...
@@ -329,7 +339,7 @@ public class Program : MonoBehaviour
string
GamePaths
=
Application
.
persistentDataPath
+
"/ygopro2/"
;
if
(!
File
.
Exists
(
GamePaths
+
"updates/version2.0.txt"
))
{
string
filePath
=
Application
.
streamingAssetsPath
+
"/ygopro2.zip"
;
string
filePath
=
Application
.
streamingAssetsPath
+
"/ygopro2
-data
.zip"
;
var
www
=
new
WWW
(
filePath
);
while
(!
www
.
isDone
)
{
}
byte
[]
bytes
=
www
.
bytes
;
...
...
@@ -413,17 +423,13 @@ public class Program : MonoBehaviour
loadResources
();
#if !UNITY_EDITOR && UNITY_ANDROID //Android Java Test
if
(!
File
.
Exists
(
"updates/image_version1.
1
.txt"
))
//用于检查更新
if
(!
File
.
Exists
(
"updates/image_version1.
2
.txt"
))
//用于检查更新
{
if
(
File
.
Exists
(
"pics.zip"
))
{
jo
.
Call
(
"doExtractZipFile"
,
"pics.zip"
,
ANDROID_GAME_PATH
);
File
.
Copy
(
"updates/version2.0.txt"
,
"updates/image_version1.1.txt"
,
true
);
}
else
if
(
File
.
Exists
(
"/storage/emulated/0/ygocore/pics.zip"
))
{
//YGOMobile内置的卡图包
jo
.
Call
(
"doExtractZipFile"
,
"/storage/emulated/0/ygocore/pics.zip"
,
ANDROID_GAME_PATH
);
File
.
Copy
(
"updates/version2.0.txt"
,
"updates/image_version1.1.txt"
,
true
);
File
.
Copy
(
"updates/version2.0.txt"
,
"updates/image_version1.2.txt"
,
true
);
}
else
{
//Application.OpenURL("https://www.taptap.com/app/37972");
jo
.
Call
(
"showToast"
,
"没有发现卡图包,是否未安装YGOMobile"
);
jo
.
Call
(
"doDownloadZipFile"
,
"https://github.com/Unicorn369/pro2_android_closeup/releases/download/1.0/pics.zip"
);
}
}
...
...
@@ -1091,7 +1097,7 @@ public class Program : MonoBehaviour
_padScroll
=
0
;
}
GUI
.
Label
(
new
Rect
(
10
,
5
,
200
,
200
),
"[Ver
sion
2.2] "
+
"FPS: "
+
m_FPS
);
GUI
.
Label
(
new
Rect
(
10
,
5
,
200
,
200
),
"[Ver
2.
2.2] "
+
"FPS: "
+
m_FPS
);
}
void
Update
()
...
...
Assets/SibylSystem/Room/RoomList.cs
View file @
05fc925a
...
...
@@ -111,8 +111,8 @@ public class RoomList : WindowServantSP
string
versionString
=
UIHelper
.
getByName
<
UIInput
>(
Program
.
I
().
selectServer
.
gameObject
,
"version_"
).
value
;
if
(
versionString
==
""
)
{
UIHelper
.
getByName
<
UIInput
>(
Program
.
I
().
selectServer
.
gameObject
,
"version_"
).
value
=
"0x134
8
"
;
versionString
=
"0x134
8
"
;
UIHelper
.
getByName
<
UIInput
>(
Program
.
I
().
selectServer
.
gameObject
,
"version_"
).
value
=
"0x134
9
"
;
versionString
=
"0x134
9
"
;
}
Program
.
I
().
roomList
.
hide
();
Program
.
I
().
selectServer
.
KF_onlineGame
(
Name
,
ipString
,
portString
,
versionString
,
pswString
);
...
...
Assets/StreamingAssets/ygopro2.zip
→
Assets/StreamingAssets/ygopro2
-data
.zip
View file @
05fc925a
File moved
Assets/StreamingAssets/ygopro2.zip.meta
→
Assets/StreamingAssets/ygopro2
-data
.zip.meta
View file @
05fc925a
File moved
ProjectSettings/ProjectSettings.asset
View file @
05fc925a
...
...
@@ -123,7 +123,7 @@ PlayerSettings:
16:10:
1
16:9:
1
Others
:
1
bundleVersion
:
1.034.
8 (Test 2.2.1
)
bundleVersion
:
1.034.
9 (Test 2.2.2
)
preloadedAssets
:
[]
metroInputSource
:
0
m_HolographicPauseOnTrackingLoss
:
1
...
...
README.md
View file @
05fc925a
# Download game
https://github.com/Unicorn369/YGOPro2_Droid/releases
# You have just found ygopro v2 in Unity 3D!
YGOPro v2 is a card simulation game created in Unity Engine, with same protocol to ygopro.
...
...
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