|
@ -35,7 +35,7 @@ public class Jump : LogicBlock |
|
|
player.justMoved = true; |
|
|
player.justMoved = true; |
|
|
Block endBlock = GetEndBlock(player.CurrentBlock, player.transform, ~player.Ignore); |
|
|
Block endBlock = GetEndBlock(player.CurrentBlock, player.transform, ~player.Ignore); |
|
|
|
|
|
|
|
|
while(endBlock.CurrentPlayer != null) |
|
|
while(endBlock.CurrentPlayer != null && endBlock.CurrentPlayer != player) |
|
|
{ |
|
|
{ |
|
|
yield return player.StartCoroutine(player.AnimateToPosition(endBlock.VisualPosition + Vector3.up * 0.5f, Character.Animation.Jump, 0.8f)); |
|
|
yield return player.StartCoroutine(player.AnimateToPosition(endBlock.VisualPosition + Vector3.up * 0.5f, Character.Animation.Jump, 0.8f)); |
|
|
endBlock.CurrentPlayer.StartAnimation(Character.Animation.Hit); |
|
|
endBlock.CurrentPlayer.StartAnimation(Character.Animation.Hit); |
|
|