Commit b8c1fcc7 authored by SherryChaos's avatar SherryChaos

Adjust Chain Animation

parent ed36770b
......@@ -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,6 +6252,8 @@ namespace MDPro3
}
StartCoroutine(Program.I().texture_.LoadDummyCard(targetCardB, codesInChain[chain - 3], true));
if(chain > 3)
{
if (controllerInChain[chain - 3] == controllerInChain[chain - 4])
{
manager.GetElement("ChainStraightALtoBR").SetActive(false);
......@@ -6287,6 +6289,14 @@ namespace MDPro3
}
StartCoroutine(Program.I().texture_.LoadDummyCard(targetCardA, codesInChain[chain - 4], true));
}
else
{
manager.GetElement("ChainStraightALtoBR").SetActive(false);
manager.GetElement("ChainStraightARtoBL").SetActive(false);
manager.GetElement("ChainCardSetALOffset").SetActive(false);
manager.GetElement("ChainCardSetAROffset").SetActive(false);
}
}
}
float ShowChainResolve(int chain)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment