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); }
void PlaySubtitle(CutSceneClip clip) { //currentSubtitle = (CutSceneSubtitles)clip.master; StartCoroutine(StopSubtitle(clip.duration)); }