Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro3
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
SK
MDPro3
Commits
761f5c20
Commit
761f5c20
authored
Mar 20, 2026
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset bg phases when quit duel
parent
238ed70b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Assets/Scripts/MDPro3/Duel/BG/DuelBGManager.cs
Assets/Scripts/MDPro3/Duel/BG/DuelBGManager.cs
+5
-4
ProjectSettings/QualitySettings.asset
ProjectSettings/QualitySettings.asset
+1
-1
No files found.
Assets/Scripts/MDPro3/Duel/BG/DuelBGManager.cs
View file @
761f5c20
...
@@ -22,6 +22,7 @@ using YgomSystem.ElementSystem;
...
@@ -22,6 +22,7 @@ using YgomSystem.ElementSystem;
using
YgomSystem.Timeline
;
using
YgomSystem.Timeline
;
using
static
MDPro3
.
Servant
.
OcgCore
;
using
static
MDPro3
.
Servant
.
OcgCore
;
using
static
YgomGame
.
Bg
.
BgEffectSettingInner
;
using
static
YgomGame
.
Bg
.
BgEffectSettingInner
;
using
static
YgomGame
.
Bg
.
BgUnit
;
namespace
MDPro3.Duel
namespace
MDPro3.Duel
{
{
...
@@ -939,8 +940,7 @@ namespace MDPro3.Duel
...
@@ -939,8 +940,7 @@ namespace MDPro3.Duel
mate
.
parent
=
anchor
;
mate
.
parent
=
anchor
;
mate
.
transform
.
SetParent
(
anchor
,
false
);
mate
.
transform
.
SetParent
(
anchor
,
false
);
mate
.
transform
.
localPosition
=
Vector3
.
zero
;
mate
.
transform
.
SetLocalPositionAndRotation
(
Vector3
.
zero
,
Quaternion
.
identity
);
mate
.
transform
.
localRotation
=
Quaternion
.
identity
;
}
}
private
static
int
GetRayeEngageMateId
(
PremiumMateState
state
)
private
static
int
GetRayeEngageMateId
(
PremiumMateState
state
)
...
@@ -993,7 +993,6 @@ namespace MDPro3.Duel
...
@@ -993,7 +993,6 @@ namespace MDPro3.Duel
{
{
if
(
state
==
null
)
if
(
state
==
null
)
return
;
return
;
foreach
(
var
pair
in
state
.
Forms
)
foreach
(
var
pair
in
state
.
Forms
)
{
{
var
mate
=
pair
.
Value
;
var
mate
=
pair
.
Value
;
...
@@ -1096,7 +1095,6 @@ namespace MDPro3.Duel
...
@@ -1096,7 +1095,6 @@ namespace MDPro3.Duel
{
{
if
(
mate
==
null
||
triggerPriority
==
null
||
triggerPriority
.
Count
==
0
)
if
(
mate
==
null
||
triggerPriority
==
null
||
triggerPriority
.
Count
==
0
)
return
false
;
return
false
;
var
checkedSet
=
new
HashSet
<
string
>(
StringComparer
.
OrdinalIgnoreCase
);
var
checkedSet
=
new
HashSet
<
string
>(
StringComparer
.
OrdinalIgnoreCase
);
for
(
var
i
=
0
;
i
<
triggerPriority
.
Count
;
i
++)
for
(
var
i
=
0
;
i
<
triggerPriority
.
Count
;
i
++)
{
{
...
@@ -1253,6 +1251,7 @@ namespace MDPro3.Duel
...
@@ -1253,6 +1251,7 @@ namespace MDPro3.Duel
?
state
.
SwapEffect
.
ToSubNextTriggerPriority
?
state
.
SwapEffect
.
ToSubNextTriggerPriority
:
state
.
SwapEffect
.
ToBaseNextTriggerPriority
);
:
state
.
SwapEffect
.
ToBaseNextTriggerPriority
);
IReadOnlyList
<
string
>
effectiveNextTriggerPriority
=
nextTriggerPriority
;
IReadOnlyList
<
string
>
effectiveNextTriggerPriority
=
nextTriggerPriority
;
if
(
state
.
SwapEffect
.
UseChangeMotion
&&
currentMate
!=
null
&&
playChangeOnCurrentMate
if
(
state
.
SwapEffect
.
UseChangeMotion
&&
currentMate
!=
null
&&
playChangeOnCurrentMate
&&
!
MateHasAnyTransitionCandidate
(
currentMate
,
currentTriggerPriority
))
&&
!
MateHasAnyTransitionCandidate
(
currentMate
,
currentTriggerPriority
))
playChangeOnCurrentMate
=
false
;
playChangeOnCurrentMate
=
false
;
...
@@ -2273,6 +2272,8 @@ namespace MDPro3.Duel
...
@@ -2273,6 +2272,8 @@ namespace MDPro3.Duel
foreach
(
var
go
in
allGameObjects
)
foreach
(
var
go
in
allGameObjects
)
UnityEngine
.
Object
.
Destroy
(
go
);
UnityEngine
.
Object
.
Destroy
(
go
);
allGameObjects
.
Clear
();
allGameObjects
.
Clear
();
bgPhase0
=
0
;
bgPhase1
=
0
;
ResetPremiumMateStates
();
ResetPremiumMateStates
();
mate0
=
null
;
mate0
=
null
;
mate1
=
null
;
mate1
=
null
;
...
...
ProjectSettings/QualitySettings.asset
View file @
761f5c20
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
QualitySettings
:
QualitySettings
:
m_ObjectHideFlags
:
0
m_ObjectHideFlags
:
0
serializedVersion
:
5
serializedVersion
:
5
m_CurrentQuality
:
0
m_CurrentQuality
:
6
m_QualitySettings
:
m_QualitySettings
:
-
serializedVersion
:
4
-
serializedVersion
:
4
name
:
Very Low
name
:
Very Low
...
...
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