public void Transit(Scenario.Chapter completed) { foreach (var u in useCases) { if (u.BeforeTransitTrigger.HasFlag(completed)) { u.BeforeTransitScenario(completed); } } Debug.Log($"## Transit from {completed}"); scenario.Transit(completed); Debug.Log($"## Transit to {CurrentChapter}"); foreach (var u in useCases) { if (u.AfterTransitTrigger.HasFlag(CurrentChapter)) { u.AfterTransitScenario(CurrentChapter); } } }
public virtual void AfterTransitScenario(Scenario.Chapter c) { onAfterTransitScenario.OnNext(c); }
public virtual void BeforeTransitScenario(Scenario.Chapter c) { onBeforeTransitScenario.OnNext(c); }
protected void TransitScenario(Scenario.Chapter from) { director.Transit(from); }