Example #1
0
 private void OnCmdExitCombat(object sender, GameEventArgs e)
 {
     Logger.Log("scene", "Change to scene 'NavigationScene'");
     SceneManager.LoadSceneAsync("NavigationScene");
 }
Example #2
0
 public void BroadcastGameEvent(object sender, GameEventArgs args)
 {
     RaiseGameEvent(_broadcast, sender, args);
 }
Example #3
0
        private void RaiseGameEvent(EventHandler <GameEventArgs> handler, object sender, GameEventArgs args)
        {
            Logger.Log("event", "Raise event of type '{0}'", args.Type);

            // Make local copy to stay thread-safe
            EventHandler <GameEventArgs> _handler = handler;

            if (_handler != null)
            {
                _handler(sender, args);
            }
        }
 private void OnCmdEnterCombat(object sender, GameEventArgs e)
 {
     Logger.Log("scene", "Change to scene 'CombatScene'");
     SceneManager.LoadSceneAsync("CombatScene");
 }