// end game flag thing public void revokeFlags() { foreach (FlagSpawner RSpawn in RedSpawners) { RSpawn.getRidOfFlag(); } foreach (FlagSpawner BSpawn in BlueSpawners) { BSpawn.getRidOfFlag(); } }
// Flag Things public void checkFlagSpawners() { foreach (FlagSpawner RSpawn in RedSpawners) { if (RSpawn.accessCurrentState() != SpawnerKind.spawnStates.RESPAWNING) { break; } spawnFlag(flagColor.RED); // switch to red blue enum? also cool if I have more than 2 teams. } foreach (FlagSpawner BSpawn in BlueSpawners) { if (BSpawn.accessCurrentState() != SpawnerKind.spawnStates.RESPAWNING) { break; } spawnFlag(flagColor.BLUE); } }