예제 #1
0
 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);
         }
     }
 }
예제 #2
0
    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;
            }
        }
    }
예제 #3
0
 public void setFaction(Util.Factions f)
 {
     faction = f;
 }