Пример #1
0
 public void OnAction(object sender, ActionEventArgs e)
 {
     e.Self = this;
     if (sender is Player) {
         Player player = (Player)sender;
         if(_Destination != null)
         {
             // TODO: make this work
             player.Position = _Destination.Position;
         }
         _RenderSet.Scene.Game.CurrentScene = (_Destination == null ? _NextScene == null ?  null : _NextScene : _Destination.Set.Scene);
     }
     if(Action != null)
         Action(sender, e);
 }
Пример #2
0
 public void OnAction(object sender, ActionEventArgs e)
 {
     if(Action != null)
         Action(sender, e);
 }