예제 #1
0
    public IEnumerator InvenTutorial()
    {
        characterMover.moveType = CharacterMover.MoveType.LOCK;
        tutorialPanel.OnInven();

        dialogueManager.textTalker.color       = new Color(0.2f, 0.6f, 1);
        dialogueManager.textSentence.color     = new Color(0.2f, 0.6f, 1);
        dialogueManager.textSentence.alignment = TextAnchor.UpperCenter;
        dialogueManager.StartDialogue(TutoInven);
        yield return(new WaitUntil(() => dialogueManager.canvasObj.activeSelf == false));

        tutorialPanel.OffInven();
        dialogueManager.textTalker.color       = new Color(1, 1, 1);
        dialogueManager.textSentence.color     = new Color(1, 1, 1);
        dialogueManager.textSentence.alignment = TextAnchor.UpperLeft;

        characterMover.moveType = CharacterMover.MoveType.COMMANDMOVE;

        yield break;
    }