fixed checkpoints and AI

This commit is contained in:
2024-04-26 12:25:28 +02:00
parent d49e58e008
commit 49b4414155
19 changed files with 1395 additions and 552 deletions

View File

@@ -36,8 +36,17 @@ public class GameManager : MonoBehaviour
{
GameObject player = players[i];
if (playersFinished.Contains(player.name) || playersFinished.Contains(player.name + " (player)"))
continue;
try
{
if (playersFinished.Contains(player.name) || playersFinished.Contains(player.name + " (player)"))
continue;
}
catch
{
return;
}
bool isAI = true;
if (player.GetComponent<PlayerController>().enabled)