예제 #1
0
    private void PlayNodeTypeSentence(iNode _node)
    {
        ///背景处理
        if (!string.IsNullOrEmpty(_node.ChangeBGImage))
        {
            if (_node.ChangeBGImage == "Scene" )
            {
                background.Image.sprite = Loader.Sprite(Libretto.CurrentScene.BGImage);
            }
            else
            {
                background.Image.sprite = Loader.Sprite(_node.ChangeBGImage);
            }

        }

        if (!string.IsNullOrEmpty( _node.ChangeBGM))
        {
            if (_node.ChangeBGImage == "Scene")
            {
                background.Image.sprite = Loader.Sprite(Libretto.CurrentScene.BGAudio);
            }
            else
            {
                background.BGM.clip = Loader.AudioClip(_node.ChangeBGM);
            }
        }

        ///人物处理
        charactor.Play(_node.ActorList);

        ///台词处理

        captions.Play(_node.Sentences);

        UIManager.GetUI<UI_Game>().NoNext = false;
    }