Esempio n. 1
0
    public void onChosenRepereCardinal(RepereType.TypePointCardinal cardinalType)
    {
        RepereType repere     = ReperesManager.Instance.getCardinalRepereType(cardinalType);
        string     repereInfo = repere.getTypePointCardinalValue(false);

        setDiceCardinalLabel(diceCardinal1Value, repereInfo);

        diceCardinalChoose.SetActive(false);
        diceCardinalChooseWindow.SetActive(false);
        diceCardinalPass.SetActive(false);
    }
Esempio n. 2
0
    public void setDiceCardinalForReperes(RepereType.TypePointCardinal repereType1, RepereType.TypePointCardinal repereType2, string card1Value, string card2Value)
    {
        setDiceCardinalLabel(card1Value, card2Value);
        diceCardinal1Value = card1Value;
        diceCardinal2Value = card2Value;

        bool diceCardChooseFlag = repereType2 == RepereType.TypePointCardinal.Special;
        bool diceCardPass1Flag  = repereType1 == RepereType.TypePointCardinal.Passe;
        bool diceCardPass2Flag  = repereType2 == RepereType.TypePointCardinal.Passe;

        diceCardinalChoose.SetActive(diceCardChooseFlag);
        diceCardinalChooseWindow.SetActive(diceCardChooseFlag);
        diceCardinalPass.SetActive(diceCardPass1Flag || diceCardPass2Flag);
        displayPassMessage(diceCardPass1Flag || diceCardPass2Flag);
    }
Esempio n. 3
0
 public RepereType getCardinalRepereType(RepereType.TypePointCardinal cardinalType)
 {
     if (repereHaut.type == RepereType.TypeEnum.Couleur)
     {
         return(null);
     }
     if (repereHaut.typePointCardinal == cardinalType)
     {
         return(repereHaut);
     }
     if (repereDroite.typePointCardinal == cardinalType)
     {
         return(repereDroite);
     }
     if (repereBas.typePointCardinal == cardinalType)
     {
         return(repereBas);
     }
     if (repereGauche.typePointCardinal == cardinalType)
     {
         return(repereGauche);
     }
     return(null);
 }
Esempio n. 4
0
 public void setDiceRepere2WithCardinal(RepereType.TypePointCardinal cardinalType)
 {
     targetRepere2 = ReperesManager.Instance.getCardinalRepereType(cardinalType);
     onDiceRepereDone();
 }
 private void chooseCardinal(RepereType.TypePointCardinal value)
 {
     DicesManager.Instance.onChosenRepereCardinal(value);
     PlayersManager.Instance.getCurrentPlayer().setDiceRepere2WithCardinal(value);
 }