/// <summary> /// Switch flow and scene /// </summary> /// <param name="_flowToLoad">name of the scene (you have to update CreateFlow() to manage new scenes/flows)</param> /// <param name="toCall">Optionnal, this delegate will be call just after the scene generation</param> public void ChangeFlows(GV.SCENENAMES _flowToLoad, ToCallOnStart toCall = null) { this.toCall = toCall ?? Empty; flowInitialized = false; currentFlow.Finish(); currentFlow = CreateFlow(_flowToLoad); }
private FlowManager() { toCall = new ToCallOnStart(Empty); }