Ejemplo n.º 1
0
 public bool OnInput(InputEvent inputEvent)
 {
     if (IsInsideTree())
     {
         //The buck stops here.
         //Doesn't matter if we need the event.
         if (inputEvent.IsActionPressed("ui_cancel"))
         {
             GetParent().RemoveChild(this);
             InputPriorityServer.RefreshMouseMode();
         }
         return(true);
     }
     return(false);
 }
 public override void _Ready()
 {
     Instance = this;
 }