//private void ConvertSymboleToString() //{ // if (symbole == 1) { SymboleString = "<"; } // if (symbole == 2) { SymboleString = "="; } // if (symbole == 3) { SymboleString = ">"; } //} //*** //private void ChooseGoodAnswer() //{ // GoodAnswer = Random.Range(1, 4); //} public void Button1() { if (symbole == 1) { Debug.LogWarning("Bonne RĂ©ponse"); askQuestionScript.isGoodAnswer(); } else { Debug.LogWarning("Mauvaise RĂ©ponse"); askQuestionScript.isBadAnswer(); } }
public void isButton1() { if (GoodAnswer == 1) { askQuestionScript.isGoodAnswer(); } else { askQuestionScript.isBadAnswer(); } }
// Update is called once per frame void Update() { if (isCooldown == true) { Cooldown -= Time.fixedDeltaTime; if (Cooldown <= 0) { isCooldown = false; Cooldown = MaxCooldownValue; if (Answer == GoodAnswer) { askQuestion.isGoodAnswer(); } else { askQuestion.isBadAnswer(); } } } }