i will like to put on OnConversationEnd method of AbstractDialogueUI something like let me know if a cutscene is playing and if this true call play method of that cutscene, the problem is how to access to that active cutscene??
Thanks for the help

Code: Select all
public class PauseCutscenesDuringConversations : MonoBehaviour {
private List<Cutscene> pausedCutscenes = new List<Cutscene>();
public void OnConversationStart(Transform actor) {
// Pause all active cutscenes:
pausedCutscenes.Clear();
foreach (var cutscene in FindObjectsOfType<>) {
if (cutscene.IsPlaying) { //<-- Need to double-check this property name.
cutscene.Pause();
pausedCutscenes.Add(cutscene);
}
}
}
public void OnConversationEnd(Transform actor) {
// Resume paused cutscenes:
pausedCutscenes.ForEach(cutscene => cutscene.Play());
}
}