Esempio n. 1
0
    public override void ProcessFrame(Playable playable, FrameData info, object playerData)
    {
        dialogBox = playerData as Image; // 这个地方有变化
        if (dialogBox != null)
        {
            DialogSystem dialogSys = dialogBox.gameObject.GetComponent <DialogSystem>();
            dialogSys.GetTextFromFile(sourceText);
            dialogBox.gameObject.SetActive(true);

            /*avatar = GameObject.FindGameObjectWithTag("DialogAvatar").GetComponent<Image>();
             * text = GameObject.FindGameObjectWithTag("DialogText").GetComponent<Text>();
             * avatar.sprite = avatarSourceImage;
             * text.text = sourceText;*/
            director.Pause();
        }
    }