Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
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
perfectdicky
YGOProUnity_V2
Commits
9ecc9e8e
Commit
9ecc9e8e
authored
Apr 08, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix select position
parent
ccb53ca7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
Assets/SibylSystem/Servant.cs
Assets/SibylSystem/Servant.cs
+17
-5
No files found.
Assets/SibylSystem/Servant.cs
View file @
9ecc9e8e
using
UnityEngine
;
using
System
;
using
System.Collections.Generic
;
using
YGOSharp.OCGWrapper.Enums
;
public
class
Servant
{
public
GameObject
gameObject
;
...
...
@@ -693,14 +695,24 @@ public class Servant
UIHelper
.
registEvent
(
currentMSwindow
,
"atk_"
,
ES_RMSpremono
,
atk
);
UIHelper
.
registEvent
(
currentMSwindow
,
"def_"
,
ES_RMSpremono
,
def
);
UITexture
atkpic
=
UIHelper
.
getByName
<
UITexture
>(
currentMSwindow
,
"atkPic_"
);
UIButton
defbutton
=
UIHelper
.
getByName
<
UIButton
>(
currentMSwindow
,
"def_"
);
if
(
Int32
.
Parse
(
atk
.
value
)
==
(
int
)
CardPosition
.
FaceUpDefence
)
{
atkpic
.
transform
.
localRotation
=
Quaternion
.
Euler
(
0f
,
0f
,
90f
);
defbutton
.
transform
.
localPosition
=
new
Vector3
(
72.8f
,
2f
,
0f
);
}
else
{
atkpic
.
transform
.
localRotation
=
Quaternion
.
Euler
(
0f
,
0f
,
0f
);
defbutton
.
transform
.
localPosition
=
new
Vector3
(
62.8f
,
0f
,
0f
);
}
cardPicLoader
cardPicLoader_
=
currentMSwindow
.
AddComponent
<
cardPicLoader
>();
cardPicLoader_
.
code
=
code
;
cardPicLoader_
.
uiTexture
=
UIHelper
.
getByName
<
UITexture
>(
currentMSwindow
,
"atkPic_"
)
;
cardPicLoader_
.
uiTexture
=
atkpic
;
cardPicLoader_
=
currentMSwindow
.
AddComponent
<
cardPicLoader
>();
if
(
Int32
.
Parse
(
def
.
value
)
!=
8
)
cardPicLoader_
.
code
=
code
;
else
cardPicLoader_
.
code
=
0
;
cardPicLoader_
.
code
=
(
Int32
.
Parse
(
def
.
value
)
==
(
int
)
CardPosition
.
FaceDownDefence
)
?
0
:
code
;
cardPicLoader_
.
uiTexture
=
UIHelper
.
getByName
<
UITexture
>(
currentMSwindow
,
"defPic_"
);
}
...
...
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