|
|
@@ -415,38 +415,62 @@ public class PlayerController : MoveCharacter
|
|
|
}
|
|
|
void OnSummonSpirit()
|
|
|
{
|
|
|
- if (!isTransfiguration && !isFloat && canMove)
|
|
|
- isSpiritSummon = true;
|
|
|
- if (isTransfiguration && currentSpirit == 0)
|
|
|
+ if (!isFloat && canMove)
|
|
|
{
|
|
|
-
|
|
|
+ if (!isTransfiguration)
|
|
|
+ {
|
|
|
+ isSpiritSummon = true;
|
|
|
+ }
|
|
|
+ else if(currentSpirit == 0)
|
|
|
+ {
|
|
|
+ //释放技能,此处暂时先写解除变身
|
|
|
+ EndTransfiguration(endChange);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
void OnSummonSpirit1()
|
|
|
{
|
|
|
- if (!isTransfiguration && !isFloat && canMove)
|
|
|
- isSpiritSummon1 = true;
|
|
|
- if (isTransfiguration && currentSpirit == 1)
|
|
|
+ if (!isFloat && canMove)
|
|
|
{
|
|
|
-
|
|
|
+ if (!isTransfiguration)
|
|
|
+ {
|
|
|
+ isSpiritSummon1 = true;
|
|
|
+ }
|
|
|
+ else if(currentSpirit == 1)
|
|
|
+ {
|
|
|
+ //释放技能,此处暂时先写解除变身
|
|
|
+ EndTransfiguration(endChange);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
void OnSummonSpirit2()
|
|
|
{
|
|
|
- if (!isTransfiguration && !isFloat && canMove)
|
|
|
- isSpiritSummon2 = true;
|
|
|
- if (isTransfiguration && currentSpirit == 2)
|
|
|
+ if (!isFloat && canMove)
|
|
|
{
|
|
|
-
|
|
|
+ if (!isTransfiguration)
|
|
|
+ {
|
|
|
+ isSpiritSummon2 = true;
|
|
|
+ }
|
|
|
+ else if(currentSpirit == 2)
|
|
|
+ {
|
|
|
+ //释放技能,此处暂时先写解除变身
|
|
|
+ EndTransfiguration(endChange);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
void OnSummonSpirit3()
|
|
|
{
|
|
|
- if (!isTransfiguration && !isFloat && canMove)
|
|
|
- isSpiritSummon3 = true;
|
|
|
- if (isTransfiguration && currentSpirit == 3)
|
|
|
+ if (!isFloat && canMove)
|
|
|
{
|
|
|
-
|
|
|
+ if (!isTransfiguration)
|
|
|
+ {
|
|
|
+ isSpiritSummon3 = true;
|
|
|
+ }
|
|
|
+ else if(currentSpirit == 3)
|
|
|
+ {
|
|
|
+ //释放技能,此处暂时先写解除变身
|
|
|
+ EndTransfiguration(endChange);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
public void Jump()
|
|
|
@@ -473,10 +497,6 @@ public class PlayerController : MoveCharacter
|
|
|
|
|
|
public bool CheckSummon()
|
|
|
{
|
|
|
- if (isTransfiguration)
|
|
|
- {
|
|
|
- return false;
|
|
|
- }
|
|
|
if (cacheSummonTime > 0)
|
|
|
{
|
|
|
Summon(cacheSummonId);
|