Exemplo n.º 1
0
    public void Show(ResultModalModel model)
    {
        score.text = string.Format("{0}/{1}", model.Score, model.QuizCount);
        TimeSpan ts = new TimeSpan(0, 0, Mathf.RoundToInt(model.LeftTime));

        leftTime.text = string.Format("{0:D2}:{1:D2}", ts.Minutes, ts.Seconds);
        model.Start.Init("Start", model.Context);
        this.gameObject.SetActive(true);
    }
Exemplo n.º 2
0
    private void UpdateFinish()
    {
        this.context.WatchStop();
        ResultModalModel model =
            new ResultModalModel(this.context.correctCount,
                                 this.context.quizCount,
                                 this.context.playTime,
                                 this.startObject,
                                 this.context);

        resultModalPresenter.Show(model);
        this.currentStatus = STATUS_ENUM.SHOW_RESLUT;
        SetActive(this.trStart, true);
        SetActive(this.objPlay, false);
    }