/* * This is invoked when someone publishes IntroFinishedEvent (ex. IntroSceneFlow.cs) * We handle this event to get the moment, when Intro is finished, so we can move to * AssetLoadingScene */ public override void IntroFinishedEventHandler(IntroFinishedEvent data) { base.IntroFinishedEventHandler(data); this.Publish(new UnloadSceneCommand() //Unload Intro scene { SceneName = "IntroScene" }); this.Publish(new LoadSceneCommand() // Load AssetsLoadingScene { SceneName = "AssetsLoadingScene" }); }
/// <sumarry> // This method is executed when using this.Publish(new IntroFinishedEvent()) /// </sumarry> public override void IntroFinishedEventHandler(IntroFinishedEvent data) { base.IntroFinishedEventHandler(data); // Process the commands information. Also, you can publish new events by using the line below. // this.Publish(new AnotherEvent()) this.Publish(new UnloadSceneCommand() //Unload Intro scene { SceneName = "IntroScene" }); this.Publish(new LoadSceneCommand() // Load AssetsLoadingScene { SceneName = "AssetsLoadingScene" }); }
/// <summary> // This method is executed when using this.Publish(new IntroFinishedEvent()) /// </summary> public virtual void IntroFinishedEventHandler(IntroFinishedEvent data) { // Process the commands information. Also, you can publish new events by using the line below. // this.Publish(new AnotherEvent()) }
public virtual void IntroFinishedEventHandler(IntroFinishedEvent data) { }