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); }
public void OnAction(object sender, ActionEventArgs e) { if(Action != null) Action(sender, e); }