Exemple #1
0
 protected virtual void touch_relax(als_touch_control control)
 {
     if (control.last_state() == e_touch_control_state.no_action) // кнопка отпущена
     {
         _player_pawn.body_relax();
     }
 }
Exemple #2
0
 protected virtual void touch_release(als_touch_control control)
 {
     if (control.last_state() == e_touch_control_state.hold)             // кнопка нажата, отпускаем хватку
     {
         button_grab_release();
     }
     else             // кнопка отпущена, можно хвататься заново
     {
         button_grab_enable();
     }
 }
Exemple #3
0
 protected virtual void touch_use_item(als_touch_control control)
 {
     if (control.last_state() == e_touch_control_state.hold)             // кнопка нажата
     {
         _player_pawn.use_item_start();
     }
     else             // кнопка отпущена
     {
         _player_pawn.use_item_stop();
     }
 }
 void touch_leg_stick(als_touch_control control)
 {
     if (control.last_state() == e_touch_control_state.directed)
     {
         _player_pawn.body_leg_full_direct(control.last_direction());
     }
     else if (control.last_state() == e_touch_control_state.tapped || (control.last_state() == e_touch_control_state.hold && _player_pawn.is_leg_grouped()))
     {
         _player_pawn.body_leg_group();
     }
 }
 void touch_joystick(als_touch_control control)
 {
     if (control.last_state() == e_touch_control_state.directed)
     {
         _player_pawn.body_direct(control.last_direction());
     }
     else if (control.last_state() == e_touch_control_state.tapped)
     {
         _player_pawn.body_arm_group();
     }
 }
 void touch_jump(als_touch_control control)
 {
     if (control.last_state() == e_touch_control_state.hold) // кнопка нажата, действуют ноги
     {
         _player_pawn.body_jump_begin();
     }
     else // кнопка отпущена, действуют руки
     {
         _player_pawn.body_jump_end();
     }
 }