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