/// <summary></summary> private void OnMonologueFinished(Monologue monologue) { if (activeIntroduction != null) { IsActive = false; activeIntroduction.Finish(); activeIntroduction = null; IntroFinished?.Invoke(); } }
/// <summary>Sets the active state of the introduction manager when an introduction has started</summary> private void OnIntroStart(Introduction introduction, Monologue monologue) { if (!IsActive) { IsActive = true; activeIntroduction = introduction; monologueChannel.RaiseEvent(monologue); } else { Debug.LogError("An intro tried starting while another was already in progress :: this is not intended behaviour!"); } }