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(); } }
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("الماس کافی نداری"); } }
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(); }
public void Hide() { myPanel.Hide(); }
public void Hide() { StopAllCoroutines(); myPanel.Hide(); }
public void StartLesson() { myPanel.Hide(); GameMng.Instance.ShowQuestionPanel(); }
public void Hide(bool immidiate = false) { myPanel.Hide(immidiate); }