public void EnterCombat(List <Character2D> LinkedCharacters) { if (EnterCombatRountine != null) { return; } if (LinkedCharacters.Count > 0) { for (int i = 0; i < LinkedCharacters.Count; i++) { if (LinkedCharacters[i] == null) { Debug.LogError("Character " + i + " is null"); return; } if (LinkedCharacters[i].Health <= 0) { Debug.LogError("Character " + LinkedCharacters[i].name + " has no hp"); return; } } CombatCharacters = LinkedCharacters; SelectedCharacter = CombatCharacters[0]; PlayerCharacter = SelectedCharacter; AttackingCharacterLabel.text = SelectedCharacter.name; EnterCombatRountine = MyFader.StartCoroutine(EnterCombatRoutine()); } else { Debug.LogError("No characters, so cannot enter combat."); } }