Пример #1
0
    public void AddClipMethod()
    {
        if (cutScene.tracks.Length == 0)
        {
            cutScene.AddTrack(type);
        }
        CutSceneClip newClip = (CutSceneClip)ScriptableObject.CreateInstance(typeof(CutSceneClip));

        //new CutSceneClip (this);
        newClip.master = this;
        cutScene.tracks [0].clips.Add(newClip);
    }
Пример #2
0
 void PlaySubtitle(CutSceneClip clip)
 {
     //currentSubtitle = (CutSceneSubtitles)clip.master;
     StartCoroutine(StopSubtitle(clip.duration));
 }