public void Show(string score, string bestScore, ResultType type, bool canRestart)
    {
        myPanel.Show();
        titleText.text     = GetTitleFromType(type);
        scoreText.text     = score;
        bestScoreText.text = bestScore;

        if (type >= ResultType.NotBad)
        {
            StartCoroutine(ShowStamp());
            nextButton.interactable = true;
        }
        else
        {
            stampAnimator.gameObject.SetActive(false);
            nextButton.interactable = false;
        }

        if (canRestart)
        {
            restartButton.interactable = true;
        }
        else
        {
            restartButton.interactable = false;
        }
    }
    public void Show(string cat, string lesson)
    {
        myPanel.Show();

        //StartCoroutine(WriteByCharacter(cat + "\n" + lesson));
        StartCoroutine(ShowAndRead(cat, lesson));
    }
    public void Show(string message = "", WaitingIcon iconType = WaitingIcon.WIFI, bool blockRayCast = true)
    {
        myPanel.Show();

        if (blockRayCast)
        {
            imageRayBlocker.raycastTarget = true;
        }
        else
        {
            imageRayBlocker.raycastTarget = false;
        }


        if (message == "")
        {
            messageText.text = defaultMessage;
        }
        else
        {
            messageText.text = message;
        }

        StartCoroutine(HideHandler());
    }
    public void Show(string message, Sprite icon, string shName)
    {
        myPanel.Show();
        shareName = shName;

        text.text    = message;
        image.sprite = icon;
    }
    public void ShowPanel(Question question)
    {
        myPanel.Show();
        this.question = question;
        findedWords   = 0;

        SetQuestion();
        SetCorrectWords();
    }
    public void Show(string result, string name, string course, int degree)
    {
        myPanel.Show();
        shareName = course;
        Setting.AudioPlayer.PlayOneShot(TadaClip);
        backImage.sprite = sprites[degree % sprites.Count];
        resultText.text  = result;

        messageText.text = name + " با موفقیت دوره " + course + " را به پایان رساند.";
    }
示例#7
0
    /// <summary>
    ///  **** it will remove all old Event
    /// </summary>
    /// <param name="line1"></param>
    /// <param name="line2"></param>
    /// <param name="specialNote"></param>
    public void SetMessege(string message, string specialNote = "", string header = "", bool raycastBlock = true)
    {
        OnOkButtonClickEvent     = null;
        OnCancelButtonClickEvent = null;
        SetRayCastBlocker(raycastBlock);

        messege.text        = message;
        messegeSpecial.text = specialNote;
        messegeHeader.text  = header;

        myPanel.Show();
    }
示例#8
0
    public void Show(QType type = QType.Practice)
    {
        currentQType = type;
        myPanel.Show();
        qTitleText.text = "";


        hintCloud.DOFade(1, 1).SetDelay(1).OnComplete(() =>
        {
            hintCloud.DOFade(0, 2).SetDelay(3);
        }
                                                      );

        Restart();
    }
    public void Show()
    {
        myPanel.Show();

        int bestScore = GameMng.GetExamBestScore(GameMng.selectedExam.examTitle);
        int maxScore  = GameMng.selectedExam.examQuestions * 3;

        bestScoreText.text        = bestScore + "/" + maxScore;
        diamondRequestedText.text = GameMng.selectedExam.examDiamondPrice.ToString();

        if (bestScore >= maxScore / 2f)
        {
            StartCoroutine(ShowStamp());
            CertificateButton.gameObject.SetActive(true);
        }
        else
        {
            CertificateButton.gameObject.SetActive(true);
            stampAnimator.gameObject.SetActive(false);
        }
    }
示例#10
0
 public void Show()
 {
     myPanel.Show();
     GameMng.selectedLessonIndex = GameMng.GetLastOpenLesson(GameMng.selectedCategory);
     UpdatePanel();
 }