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
96ac4767
Commit
96ac4767
authored
Apr 24, 2019
by
Unicorn369
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2e8f2762
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
Assets/SibylSystem/Menu/Menu.cs
Assets/SibylSystem/Menu/Menu.cs
+4
-4
Assets/SibylSystem/WindowServant2D.cs
Assets/SibylSystem/WindowServant2D.cs
+18
-0
No files found.
Assets/SibylSystem/Menu/Menu.cs
View file @
96ac4767
...
@@ -95,9 +95,9 @@ public class Menu : WindowServantSP
...
@@ -95,9 +95,9 @@ public class Menu : WindowServantSP
Program
.
I
().
quit
();
Program
.
I
().
quit
();
Program
.
Running
=
false
;
Program
.
Running
=
false
;
TcpHelper
.
SaveRecord
();
TcpHelper
.
SaveRecord
();
#if !UNITY_EDITOR
|| UNITY_ANDROID || UNITY_IPHONE
// IL2CPP 使用此方法才能退出
#if !UNITY_EDITOR
&& (UNITY_ANDROID || UNITY_IPHONE)
// IL2CPP 使用此方法才能退出
Application
.
Quit
();
Application
.
Quit
();
#el
if
#el
se
Process
.
GetCurrentProcess
().
Kill
();
Process
.
GetCurrentProcess
().
Kill
();
#endif
#endif
}
}
...
@@ -134,10 +134,10 @@ public class Menu : WindowServantSP
...
@@ -134,10 +134,10 @@ public class Menu : WindowServantSP
void
onClickJoinQQ
()
void
onClickJoinQQ
()
{
{
#if !UNITY_EDITOR
||
UNITY_ANDROID //Android
#if !UNITY_EDITOR
&&
UNITY_ANDROID //Android
AndroidJavaObject
jo
=
new
AndroidJavaObject
(
"cn.unicorn369.library.API"
);
AndroidJavaObject
jo
=
new
AndroidJavaObject
(
"cn.unicorn369.library.API"
);
jo
.
Call
(
"doJoinQQGroup"
,
"UHm3h3hSrmgp-iYqMiZcc2zO5J1Q8OyW"
);
jo
.
Call
(
"doJoinQQGroup"
,
"UHm3h3hSrmgp-iYqMiZcc2zO5J1Q8OyW"
);
#el
if
#el
se
Application
.
OpenURL
(
"https://jq.qq.com/?_wv=1027&k=50MZVQA"
);
Application
.
OpenURL
(
"https://jq.qq.com/?_wv=1027&k=50MZVQA"
);
#endif
#endif
}
}
...
...
Assets/SibylSystem/WindowServant2D.cs
View file @
96ac4767
...
@@ -9,6 +9,7 @@ public class WindowServant2D : Servant
...
@@ -9,6 +9,7 @@ public class WindowServant2D : Servant
UIHelper
.
clearITWeen
(
gameObject
);
UIHelper
.
clearITWeen
(
gameObject
);
iTween
.
MoveTo
(
gameObject
,
Program
.
camera_main_2d
.
ScreenToWorldPoint
(
new
Vector3
(
Screen
.
width
/
2
,
Screen
.
height
*
1.5f
,
0
)),
0.6f
);
iTween
.
MoveTo
(
gameObject
,
Program
.
camera_main_2d
.
ScreenToWorldPoint
(
new
Vector3
(
Screen
.
width
/
2
,
Screen
.
height
*
1.5f
,
0
)),
0.6f
);
}
}
resize
();
}
}
public
override
void
applyShowArrangement
()
public
override
void
applyShowArrangement
()
...
@@ -18,6 +19,23 @@ public class WindowServant2D : Servant
...
@@ -18,6 +19,23 @@ public class WindowServant2D : Servant
UIHelper
.
clearITWeen
(
gameObject
);
UIHelper
.
clearITWeen
(
gameObject
);
iTween
.
MoveTo
(
gameObject
,
Program
.
camera_main_2d
.
ScreenToWorldPoint
(
new
Vector3
(
Screen
.
width
/
2
,
Screen
.
height
/
2
,
0
)),
0.6f
);
iTween
.
MoveTo
(
gameObject
,
Program
.
camera_main_2d
.
ScreenToWorldPoint
(
new
Vector3
(
Screen
.
width
/
2
,
Screen
.
height
/
2
,
0
)),
0.6f
);
}
}
resize
();
}
void
resize
()
{
if
(
gameObject
!=
null
)
{
if
(
Program
.
I
().
setting
.
setting
.
resize
.
value
)
{
float
f
=
Screen
.
height
/
700f
;
gameObject
.
transform
.
localScale
=
new
Vector3
(
f
,
f
,
f
);
}
else
{
gameObject
.
transform
.
localScale
=
new
Vector3
(
1
,
1
,
1
);
}
}
}
}
public
override
void
hide
()
public
override
void
hide
()
...
...
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