Example #1
0
 public void Click()
 {
     annonce = (PetitType)(((int)annonce + 1) % Enum.GetNames(typeof(PetitType)).Length);
     GetComponentInChildren<Text>().text = annonce.ToString().Replace('_', ' ');
     GetComponent<Image>().color = annonce == PetitType.Pas_de_petit ? Color.white : Color.yellow;
     ScoreObject.Recalculate();
 }
Example #2
0
 public void Reset()
 {
     annonce = PetitType.Pas_de_petit;
     GetComponentInChildren<Text>().text = annonce.ToString().Replace('_', ' ');
     GetComponent<Image>().color = Color.white;
 }