Beispiel #1
0
 void UnBindStickEvt()
 {
     if (null != m_Joystick)
     {
         m_Joystick.UnBindAxes(DownEvent, EActionEvent.Press);
         m_Joystick.UnBindAxes(UpEvent, EActionEvent.Up);
     }
 }
Beispiel #2
0
 private void OnDestroy()
 {
     if (null != m_Joystick)
     {
         m_Joystick.downEvent.RemoveAllListeners();
         m_Joystick.UnBindAxes(DownEvent, EActionEvent.Press);
     }
 }