예제 #1
0
파일: Door.cs 프로젝트: qwook/hungry
 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
파일: UIButton.cs 프로젝트: qwook/hungry
 public void OnAction(object sender, ActionEventArgs e)
 {
     if(Action != null)
         Action(sender, e);
 }