private void showGameOverScreen(Util.Factions winner) { if (!Util.IS_TRAINING) { gameOverScreen.SetActive(true); if (winner == Util.Factions.Ittla) { gameOverScreenIttlaWinner.SetActive(true); } else { gameOverScreenNertaWinner.SetActive(true); } } }
public void emptySelectedOptionCharge(Util.Factions faction) { if (faction == Util.Factions.Ittla) { switch (Util.ittlaPlayerSelectedAction) { case Util.Action.Vasu: ittlaVasuCharge.GetComponent <CharacterCharge>().emptyCharge(); break; case Util.Action.Kaapo: ittlaKaapoCharge.GetComponent <CharacterCharge>().emptyCharge(); break; case Util.Action.Rad: ittlaRadCharge.GetComponent <CharacterCharge>().emptyCharge(); break; default: break; } } else if (faction == Util.Factions.Nerta) { switch (Util.nertaPlayerSelectedAction) { case Util.Action.Vasu: nertaVasuCharge.GetComponent <CharacterCharge>().emptyCharge(); break; case Util.Action.Kaapo: nertaKaapoCharge.GetComponent <CharacterCharge>().emptyCharge(); break; case Util.Action.Rad: nertaRadCharge.GetComponent <CharacterCharge>().emptyCharge(); break; default: break; } } }
public void setFaction(Util.Factions f) { faction = f; }