Example #1
0
    /// <summary>
    /// 第一轮游戏
    /// </summary>
    async void FirstGames()
    {
        nv1dice.transform.DOShakePosition(duration, strength, vibrato);
        nv2dice.transform.DOShakePosition(duration, strength, vibrato);
        nan1dice.transform.DOShakePosition(duration, strength, vibrato);

        jiesuanText.text = ChapterHelper.ReadChapterFuncTable(10000524);

        await UniTask.Delay(3300);//等待动画播放完成

        Debug.Log("显示第一轮计分");
        nv2lid.gameObject.SetActive(false);//女2先开
        jiesuanText.text += ChapterHelper.ReadChapterFuncTable(10000525);
        await UniTask.Delay(800);

        nv1lid.gameObject.SetActive(false);
        jiesuanText.text += ChapterHelper.ReadChapterFuncTable(10000526);
        await UniTask.Delay(800);

        nan1lid.gameObject.SetActive(false);
        jiesuanText.text += ChapterHelper.ReadChapterFuncTable(10000527);

        //开始对话
        dialogueBox_four.Initial(() =>
        {//12000135开始
            dialogueBox_four.Close();
            //OpenClickBtn(true);
            SecondGames();
            Debug.Log("对话完毕");
        }, FourSpeakBeforeAction);
        dialogueBox_four.Show();
    }
Example #2
0
    //第三次点击开始游戏
    async void ThirdlyStartGame()
    {
        jiesuanText.text = "";
        nv1lid.gameObject.SetActive(true);
        nv2lid.gameObject.SetActive(true);
        nan1lid.gameObject.SetActive(true);
        //设置骰子精灵
        nv1point1.sprite = point5;
        nv1point2.sprite = point4;
        nv1point3.sprite = point2;

        nv2point1.sprite = point2;
        nv2point2.sprite = point3;
        nv2point3.sprite = point5;

        nan1point1.sprite = point1;
        nan1point2.sprite = point1;
        nan1point3.sprite = point1;

        nv1dice.transform.DOShakePosition(duration, strength, vibrato);
        nv2dice.transform.DOShakePosition(duration, strength, vibrato);
        nan1dice.transform.DOShakePosition(duration, strength, vibrato);

        jiesuanText.text = ChapterHelper.ReadChapterFuncTable(10000532);
        await UniTask.Delay(3300);//等待动画播放完成

        Debug.Log("显示第三轮计分");

        nv2lid.gameObject.SetActive(false);//女2先开
        jiesuanText.text += ChapterHelper.ReadChapterFuncTable(10000533);
        await UniTask.Delay(800);

        nv1lid.gameObject.SetActive(false);
        jiesuanText.text += ChapterHelper.ReadChapterFuncTable(10000534);
        await UniTask.Delay(800);

        nan1lid.gameObject.SetActive(false);
        jiesuanText.text += ChapterHelper.ReadChapterFuncTable(10000535);

        //重新开始对话
        //dialogueBox_four.SetStartDialogueId(12000156);
        dialogueBox_six.Initial(() =>
        {
            dialogueBox_six.Close();
            //显示下一章按钮
            ReadOverThisChapter();

            Debug.Log("对话完毕");
        }, FourSpeakBeforeAction);
        dialogueBox_six.Show();
    }