Exemple #1
0
        public override void CloseCoreGameHandler(CloseCoreGame data)
        {
            base.CloseCoreGameHandler(data);

            CoreGameRoot.PlayerCollection.Clear();

            Publish(new UnloadSceneCommand()
            {
                SceneName = "CoreGameScene"
            });
        }
Exemple #2
0
 /// <summary>
 // This method is executed when using this.Publish(new CloseCoreGame())
 /// </summary>
 public virtual void CloseCoreGameHandler(CloseCoreGame data)
 {
     // Process the commands information.  Also, you can publish new events by using the line below.
     // this.Publish(new AnotherEvent())
 }