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
Dark_Zane
MDPro3
Commits
3924fd11
Commit
3924fd11
authored
Jul 12, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
87102988
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
7 deletions
+26
-7
Assets/Main.unity
Assets/Main.unity
+2
-2
Assets/Scripts/MasterDuel/YgomGame/Bg/BgEffectManagerInner.cs
...ts/Scripts/MasterDuel/YgomGame/Bg/BgEffectManagerInner.cs
+24
-5
No files found.
Assets/Main.unity
View file @
3924fd11
...
@@ -72239,7 +72239,7 @@ RectTransform:
...
@@ -72239,7 +72239,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0
.000030517578
}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 300}
m_SizeDelta: {x: 0, y: 300}
m_Pivot: {x: 0.5, y: 1}
m_Pivot: {x: 0.5, y: 1}
--- !u!1 &1117266860
--- !u!1 &1117266860
...
@@ -97569,7 +97569,7 @@ MonoBehaviour:
...
@@ -97569,7 +97569,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 2083794100}
m_HandleRect: {fileID: 2083794100}
m_Direction: 2
m_Direction: 2
m_Value: 0
m_Value: 0
m_Size: 0.558823
5
m_Size: 0.558823
47
m_NumberOfSteps: 0
m_NumberOfSteps: 0
m_OnValueChanged:
m_OnValueChanged:
m_PersistentCalls:
m_PersistentCalls:
Assets/Scripts/MasterDuel/YgomGame/Bg/BgEffectManagerInner.cs
View file @
3924fd11
...
@@ -144,7 +144,7 @@ namespace YgomGame.Bg
...
@@ -144,7 +144,7 @@ namespace YgomGame.Bg
}
}
effectSettings
=
new
Dictionary
<
BgEffectSettingInner
.
AnimationLabelDefine
,
List
<
BgEffectSettingInner
>>();
effectSettings
=
new
Dictionary
<
BgEffectSettingInner
.
AnimationLabelDefine
,
List
<
BgEffectSettingInner
>>();
for
(
int
i
=
1
;
i
<
27
;
i
++)
for
(
int
i
=
0
;
i
<
27
;
i
++)
{
{
var
labelDefine
=
(
BgEffectSettingInner
.
AnimationLabelDefine
)
i
;
var
labelDefine
=
(
BgEffectSettingInner
.
AnimationLabelDefine
)
i
;
var
list
=
new
List
<
BgEffectSettingInner
>();
var
list
=
new
List
<
BgEffectSettingInner
>();
...
@@ -219,11 +219,30 @@ namespace YgomGame.Bg
...
@@ -219,11 +219,30 @@ namespace YgomGame.Bg
animationLabel
=
param
.
animationLabel
;
animationLabel
=
param
.
animationLabel
;
break
;
break
;
}
}
var
animator
=
GetComponent
<
Animator
>();
if
(
TryGetComponent
<
Animator
>(
out
var
animator
))
if
(
animator
!=
null
)
{
animator
.
SetTrigger
(
label
.
ToString
());
animator
.
SetTrigger
(
label
.
ToString
());
}
effectSettings
.
TryGetValue
(
BgEffectSettingInner
.
AnimationLabelDefine
.
None
,
out
var
settings
);
if
(
settings
!=
null
)
foreach
(
var
setting
in
settings
)
if
(
setting
!=
null
&&
setting
.
gameObject
!=
null
)
{
setting
.
gameObject
.
SetActive
(
true
);
setting
.
PlayEffect
(
label
);
if
(
setting
.
particle
!=
null
)
setting
.
particle
.
Play
();
if
(
setting
.
animator
!=
null
)
setting
.
animator
.
SetTrigger
(
label
.
ToString
());
else
{
setting
.
gameObject
.
SetActive
(
false
);
setting
.
gameObject
.
SetActive
(
true
);
}
}
effectSettings
.
TryGetValue
(
animationLabel
,
out
var
settings
);
effectSettings
.
TryGetValue
(
animationLabel
,
out
settings
);
if
(
settings
!=
null
)
if
(
settings
!=
null
)
foreach
(
var
setting
in
settings
)
foreach
(
var
setting
in
settings
)
if
(
setting
!=
null
&&
setting
.
gameObject
!=
null
)
if
(
setting
!=
null
&&
setting
.
gameObject
!=
null
)
...
...
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