コード例 #1
0
	public override void MainMenuFinishedEventHandler(MainMenuFinishedEvent data)
	{
		base.MainMenuFinishedEventHandler(data);

		this.Publish(new UnloadSceneCommand() //Unload Intro scene
			{
				SceneName = "MainMenuScene"
			});

		this.Publish(new LoadSceneCommand() // Load AssetsLoadingScene
			{
				SceneName = "AssetsLoadingScene"
			});
	}
コード例 #2
0
 /// <summary>
 // This method is executed when using this.Publish(new MainMenuFinishedEvent())
 /// </summary>
 public virtual void MainMenuFinishedEventHandler(MainMenuFinishedEvent data) {
     // Process the commands information.  Also, you can publish new events by using the line below.
     // this.Publish(new AnotherEvent())
 }