|
|
@ -32,9 +32,10 @@ public class HomingMissile : Projectile |
|
|
|
|
|
|
|
for (int i = 0; i < 4; i++) |
|
|
|
{ |
|
|
|
if (Block.isBlockAtPosition( player.transform.position + possibleDirections[i].ToVector() + Vector3.up, 1, ~0)) |
|
|
|
if (Block.isBlockAtPosition(player.CurrentBlock.position + possibleDirections[i].ToVector() + Vector3.up, 1, ~0)) |
|
|
|
continue; |
|
|
|
|
|
|
|
Debug.Log("Pushing player " + possibleDirections[i]); |
|
|
|
yield return StartCoroutine(player.CurrentBlock.DoPush(player, possibleDirections[i].ToVector())); |
|
|
|
break; |
|
|
|
} |
|
|
|