void HandleSpawning() { uim = GameObject.Find("UserInterface").GetComponent<UserInterfaceManager>(); am = GameObject.Find("GameManager").GetComponent<AnnouncementManager>(); if (GameObject.Find("GameManager").GetComponent<GameManager>().GetLevelObjective() == LevelObjective.KillYourCharacters) { otherCharactersAreEnemies = true; } else { otherCharactersAreEnemies = false; } firstActive = false; secondActive = false; thirdActive = false; dyingWithouSwitching = false; if (uim != null) { uim.HideCharacterInfos(); } characters = new List<GameObject>(); GameState.characters = characters; CheckSpawns(); }