public void State(PlayerPiece player) { Debug.Log("Player " + player); Debug.Log("Dice " + rolledDice); if (player.movementDone || player.broughtFromHome) { player.movementDone = false; player.broughtFromHome = false; if (rolledDice == Player) { killed = player.DeletePawn(player, Player.numberGot); //killed = AIManager.current.CheckForKill(Player.numberGot, player, "Red", player.pathsParent.bluePathPoints); killTime = 0; if (rolledDice.numberGot == 6 || killed == true) { if (killed == true) { killed = false; killTime = 3f; } StartCoroutine(StartBlue((holdTime + killTime), false)); } else { StartCoroutine(StartRed(1, false)); } } if (rolledDice == Ai) { killTime = 0; if (rolledDice.numberGot == 6 || killed == true) { if (killed == true) { killed = false; killTime = 3f; } StartCoroutine(StartRed((holdTime + killTime), false)); } else { StartCoroutine(StartBlue(1, false)); } } } }