Exemplo n.º 1
0
 public void Go2NextLesson()
 {
     if (currentQType == QType.Practice)
     {
         if (GameMng.selectedLessonIndex < 3)
         {
             GameMng.selectedLessonIndex++;
             Restart();
         }
         else if ((int)GameMng.selectedCategory < GameMng.lastCategoryIndex)
         {
             GameMng.selectedCategory    = GameMng.selectedCategory + 1;
             GameMng.selectedLessonIndex = 1;
             Restart();
         }
         else
         {
             myPanel.Hide();
         }
     }
     else
     {
         myPanel.Hide();
     }
 }
Exemplo n.º 2
0
 private void MessegeBox_OnOkButtonClickEvent()
 {
     if (GameMng.GetDiamondNumber() >= GameMng.selectedExam.examDiamondPrice)
     {
         GameMng.Instance.RemoveDiamond(GameMng.selectedExam.examDiamondPrice);
         myPanel.Hide();
         GameMng.Instance.ShowExam();
     }
     else
     {
         Setting.MessegeBox.SetMessege("الماس کافی نداری");
     }
 }
Exemplo n.º 3
0
    IEnumerator ShowAndRead(string cat, string lesson)
    {
        headerText.text = cat + "\n" + lesson;

        yield return(new WaitForSeconds(0.6f));

        Setting.Speak(cat);

        yield return(new WaitForSeconds(0.25f));

        Setting.Speak(lesson, 0.7f);

        yield return(new WaitForSeconds(1f));

        myPanel.Hide();
    }
Exemplo n.º 4
0
 public void Hide()
 {
     myPanel.Hide();
 }
 public void Hide()
 {
     StopAllCoroutines();
     myPanel.Hide();
 }
Exemplo n.º 6
0
 public void StartLesson()
 {
     myPanel.Hide();
     GameMng.Instance.ShowQuestionPanel();
 }
Exemplo n.º 7
0
 public void Hide(bool immidiate = false)
 {
     myPanel.Hide(immidiate);
 }