Beispiel #1
0
 // Removes the input binding
 public static void DetachInput()
 {
     _onActionClick = null;
     _onSkillClick  = null;
     _onBackClick   = null;
     _onRightClick  = null;
     _onLeftClick   = null;
     _onUpClick     = null;
     _onDownClick   = null;
 }
Beispiel #2
0
 // Binds the input to a scene
 public static void AttachInput(
     ActionButtonClickHandler actionClick = null,
     SkillButtonClickHandler skillClick   = null,
     BackButtonClickHandler backClick     = null,
     RightButtonClickHandler rightClick   = null,
     LeftButtonClickHandler leftClick     = null,
     UpButtonClickHandler upClick         = null,
     DownButtonClickHandler downClick     = null)
 {
     _onActionClick = actionClick;
     _onSkillClick  = skillClick;
     _onBackClick   = backClick;
     _onRightClick  = rightClick;
     _onLeftClick   = leftClick;
     _onUpClick     = upClick;
     _onDownClick   = downClick;
 }