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
b8c1fcc7
Commit
b8c1fcc7
authored
Apr 12, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust Chain Animation
parent
ed36770b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
30 deletions
+40
-30
Assets/Scripts/MDPro3/Servants/OcgCore.cs
Assets/Scripts/MDPro3/Servants/OcgCore.cs
+40
-30
No files found.
Assets/Scripts/MDPro3/Servants/OcgCore.cs
View file @
b8c1fcc7
...
...
@@ -6130,7 +6130,7 @@ namespace MDPro3
return
;
GameObject
animation
;
if
(
chain
<
4
)
if
(
chain
<
3
)
animation
=
ABLoader
.
LoadFromFile
(
"Timeline/DuelChain/DuelChainStack01"
,
true
);
else
{
...
...
@@ -6141,9 +6141,9 @@ namespace MDPro3
});
DOTween
.
To
(
v
=>
{
},
0
,
0
,
0.767f
).
OnComplete
(()
=>
{
if
(
chain
==
4
)
if
(
chain
==
3
)
AudioManager
.
PlaySE
(
"SE_DUEL_CHAIN_NUMEFF_01"
);
else
if
(
chain
==
5
)
else
if
(
chain
==
4
)
AudioManager
.
PlaySE
(
"SE_DUEL_CHAIN_NUMEFF_02"
);
else
AudioManager
.
PlaySE
(
"SE_DUEL_CHAIN_NUMEFF_03"
);
...
...
@@ -6215,7 +6215,7 @@ namespace MDPro3
}
StartCoroutine
(
Program
.
I
().
texture_
.
LoadDummyCard
(
targetCardC
,
codesInChain
[
chain
-
2
],
true
));
if
(
chain
>
3
)
if
(
chain
>
2
)
{
if
(
controllerInChain
[
chain
-
2
]
==
controllerInChain
[
chain
-
3
])
{
...
...
@@ -6252,40 +6252,50 @@ namespace MDPro3
}
StartCoroutine
(
Program
.
I
().
texture_
.
LoadDummyCard
(
targetCardB
,
codesInChain
[
chain
-
3
],
true
));
if
(
controllerInChain
[
chain
-
3
]
==
controllerInChain
[
chain
-
4
]
)
if
(
chain
>
3
)
{
manager
.
GetElement
(
"ChainStraightALtoBR"
).
SetActive
(
false
);
manager
.
GetElement
(
"ChainStraightARtoBL"
).
SetActive
(
false
);
}
else
{
if
(
controllerInChain
[
chain
-
3
]
==
0
)
if
(
controllerInChain
[
chain
-
3
]
==
controllerInChain
[
chain
-
4
])
{
manager
.
GetElement
(
"ChainStraightALtoBR"
).
SetActive
(
false
);
else
manager
.
GetElement
(
"ChainStraightARtoBL"
).
SetActive
(
false
);
}
ElementObjectManager
targetCardA
;
if
(
controllerInChain
[
chain
-
4
]
==
0
)
{
targetCardA
=
manager
.
GetElement
<
ElementObjectManager
>(
"DummyChainCardAL"
);
manager
.
GetElement
(
"ChainCardSetAROffset"
).
SetActive
(
false
);
ChangeChainNumber
(
manager
.
GetElement
<
SpriteRenderer
>(
"ChainNumAL_Digit"
),
manager
.
GetElement
<
SpriteRenderer
>(
"ChainNumAL_Ones"
),
manager
.
GetElement
<
SpriteRenderer
>(
"ChainNumAL_Tens"
),
chain
-
3
);
}
else
{
if
(
controllerInChain
[
chain
-
3
]
==
0
)
manager
.
GetElement
(
"ChainStraightALtoBR"
).
SetActive
(
false
);
else
manager
.
GetElement
(
"ChainStraightARtoBL"
).
SetActive
(
false
);
}
ElementObjectManager
targetCardA
;
if
(
controllerInChain
[
chain
-
4
]
==
0
)
{
targetCardA
=
manager
.
GetElement
<
ElementObjectManager
>(
"DummyChainCardAL"
);
manager
.
GetElement
(
"ChainCardSetAROffset"
).
SetActive
(
false
);
ChangeChainNumber
(
manager
.
GetElement
<
SpriteRenderer
>(
"ChainNumAL_Digit"
),
manager
.
GetElement
<
SpriteRenderer
>(
"ChainNumAL_Ones"
),
manager
.
GetElement
<
SpriteRenderer
>(
"ChainNumAL_Tens"
),
chain
-
3
);
}
else
{
targetCardA
=
manager
.
GetElement
<
ElementObjectManager
>(
"DummyChainCardAR"
);
manager
.
GetElement
(
"ChainCardSetALOffset"
).
SetActive
(
false
);
ChangeChainNumber
(
manager
.
GetElement
<
SpriteRenderer
>(
"ChainNumAR_Digit"
),
manager
.
GetElement
<
SpriteRenderer
>(
"ChainNumAR_Ones"
),
manager
.
GetElement
<
SpriteRenderer
>(
"ChainNumAR_Tens"
),
chain
-
3
);
}
StartCoroutine
(
Program
.
I
().
texture_
.
LoadDummyCard
(
targetCardA
,
codesInChain
[
chain
-
4
],
true
));
}
else
{
targetCardA
=
manager
.
GetElement
<
ElementObjectManager
>(
"DummyChainCardAR"
);
manager
.
GetElement
(
"ChainStraightALtoBR"
).
SetActive
(
false
);
manager
.
GetElement
(
"ChainStraightARtoBL"
).
SetActive
(
false
);
manager
.
GetElement
(
"ChainCardSetALOffset"
).
SetActive
(
false
);
ChangeChainNumber
(
manager
.
GetElement
<
SpriteRenderer
>(
"ChainNumAR_Digit"
),
manager
.
GetElement
<
SpriteRenderer
>(
"ChainNumAR_Ones"
),
manager
.
GetElement
<
SpriteRenderer
>(
"ChainNumAR_Tens"
),
chain
-
3
);
manager
.
GetElement
(
"ChainCardSetAROffset"
).
SetActive
(
false
);
}
StartCoroutine
(
Program
.
I
().
texture_
.
LoadDummyCard
(
targetCardA
,
codesInChain
[
chain
-
4
],
true
));
}
}
float
ShowChainResolve
(
int
chain
)
...
...
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