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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
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
MyCard
YGOProUnity_V2
Commits
08460702
Commit
08460702
authored
Apr 10, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
speed up card drop
parent
791cad10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Assets/ArtSystem/deckManager/MonoCardInDeckManager.cs
Assets/ArtSystem/deckManager/MonoCardInDeckManager.cs
+2
-2
No files found.
Assets/ArtSystem/deckManager/MonoCardInDeckManager.cs
View file @
08460702
...
@@ -98,12 +98,12 @@ public class MonoCardInDeckManager : MonoBehaviour {
...
@@ -98,12 +98,12 @@ public class MonoCardInDeckManager : MonoBehaviour {
{
{
physicalON
();
physicalON
();
isDraging
=
false
;
isDraging
=
false
;
if
(
Input
.
GetKey
(
KeyCode
.
LeftControl
)
||
Input
.
GetKey
(
KeyCode
.
RightControl
)
||
getIfAlive
()==
false
)
if
(
Input
.
GetKey
(
KeyCode
.
LeftControl
)
||
Input
.
GetKey
(
KeyCode
.
RightControl
)
||
getIfAlive
()
==
false
)
{
{
Vector3
form_position
=
getGoodPosition
(
4
);
Vector3
form_position
=
getGoodPosition
(
4
);
Vector3
to_position
=
getGoodPosition
(
0
);
Vector3
to_position
=
getGoodPosition
(
0
);
Vector3
delta_position
=
to_position
-
form_position
;
Vector3
delta_position
=
to_position
-
form_position
;
GetComponent
<
Rigidbody
>().
AddForce
(
delta_position
*
2
00
);
GetComponent
<
Rigidbody
>().
AddForce
(
delta_position
*
10
00
);
dying
=
true
;
dying
=
true
;
}
}
}
}
...
...
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