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
1
Issues
1
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
hex
ygopro2
Commits
ee0428d5
Commit
ee0428d5
authored
Jul 04, 2025
by
hex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix side change error
parent
8417d3d7
Pipeline
#38501
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
Assets/ArtSystem/deckManager/MonoCardInDeckManager.cs
Assets/ArtSystem/deckManager/MonoCardInDeckManager.cs
+21
-4
Assets/SibylSystem/selectReplay/selectReplay.cs
Assets/SibylSystem/selectReplay/selectReplay.cs
+2
-1
No files found.
Assets/ArtSystem/deckManager/MonoCardInDeckManager.cs
View file @
ee0428d5
...
...
@@ -213,12 +213,29 @@ public class MonoCardInDeckManager : MonoBehaviour
public
bool
getIfAlive
()
{
// 步骤 1: 检查不可逆的“死亡”状态,这在任何模式下都适用。
if
(
died
||
gameObject
.
transform
.
position
.
y
<
-
0.5f
)
{
return
false
;
Vector3
to_ltemp
=
refLectPosition
(
gameObject
.
transform
.
position
);
if
(
to_ltemp
.
x
<
-
15.2f
||
to_ltemp
.
x
>
15.2f
)
return
false
;
return
Program
.
I
().
deckManager
.
condition
==
DeckManager
.
Condition
.
changeSide
||
true
;
}
// 步骤 2: 根据 DeckManager 的当前状态执行不同的逻辑。
if
(
Program
.
I
().
deckManager
.
condition
==
DeckManager
.
Condition
.
changeSide
)
{
// 换 side 的时候,不会死亡
return
true
;
}
else
// (condition == DeckManager.Condition.editDeck)
{
// 在“编辑卡组”模式下,我们执行原有的严格边界检查。
// 将卡片拖到边界外意味着“丢弃”。
Vector3
to_ltemp
=
refLectPosition
(
gameObject
.
transform
.
position
);
if
(
to_ltemp
.
x
<
-
15.2f
||
to_ltemp
.
x
>
15.2f
)
{
return
false
;
}
}
// 如果通过了所有检查,则卡片是存活的。
return
true
;
}
public
static
Vector3
refLectPosition
(
Vector3
pos
)
...
...
Assets/SibylSystem/selectReplay/selectReplay.cs
View file @
ee0428d5
...
...
@@ -300,8 +300,9 @@ public class selectReplay : WindowServantSP
RMSshow_none
(
InterString
.
Get
(
"录像没有录制完整。"
));
}
}
catch
(
Exception
)
catch
(
Exception
e
)
{
UnityEngine
.
Debug
.
Log
(
e
);
RMSshow_none
(
InterString
.
Get
(
"录像没有录制完整。"
));
}
}
...
...
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