Ejemplo n.º 1
0
    //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();
        }
    }
Ejemplo n.º 2
0
 public void isButton1()
 {
     if (GoodAnswer == 1)
     {
         askQuestionScript.isGoodAnswer();
     }
     else
     {
         askQuestionScript.isBadAnswer();
     }
 }
Ejemplo n.º 3
0
 // 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();
             }
         }
     }
 }