Exemple #1
0
    public void Talk()
    {
        //#.Talk Set
        talkName.text = talkManager.GetName();
        talkText.SetMsg(talkManager.GetTalk());
        switch ((int)talkManager.curTalkActor)
        {
        case 0:
            talkName.color = new Color32(143, 86, 59, 255);
            break;

        case 1:
            talkName.color = new Color32(180, 180, 180, 255);
            break;

        case 2:
            talkName.color = new Color32(50, 50, 50, 255);
            break;

        case 3:
            talkName.color = new Color32(211, 47, 239, 255);
            break;

        case 4:
            talkName.color = new Color32(255, 218, 59, 255);
            break;

        case 5:
            talkName.color = new Color32(255, 150, 0, 255);
            break;
        }

        if (talkText.isEnd)
        {
            //#.Restart Time & TalkBackGround Down
            SetTalkBackGround(false);

            if (!tutorialManager.isTutorialEnd)
            {
                tutorialManager.NextTutorial();
            }
            if (!mainStoryManager.isColletStoryEnd && gameManager.day == 5)
            {
                mainStoryManager.NextTalk();
            }
            if (!mainStoryManager.isTamX2StoryEnd && gameManager.day == 10)
            {
                mainStoryManager.NextTalk();
            }
            if (!mainStoryManager.isNanayangStoryEnd && gameManager.day == 15)
            {
                mainStoryManager.NextTalk();
            }
        }
        else  //talkEnd아닐때만
        {
            talkPortrait.sprite = talkManager.GetPortrait();//표정이 제일 마지막이어함
            SetTalkBackGround(true);
        }
    }