public void OnDestroy() { // safeguard m_Control.UnlockKeyboard(); m_Control.DeregisterUpdateAction(UpdateGUI); m_Control = null; }
public void OnDestroy() { if (m_axisControl != null) { m_axisControl.deregisterUpdateAction(updateAxisValue); } m_axisControl = null; }
public void SetControl(IAxisControl control) { m_Control = control; m_AxisName.color = m_Control.AxisColor; m_AxisName.text = m_Control.AxisName; m_AxisValue.textComponent.color = m_Control.AxisColor; m_Control.ReplaceTextComponentWithTMPro(m_AxisName); m_Control.ReplaceInputFieldWithTMPro(m_AxisValue, InputFieldEndEdit); UpdateGUI(); m_Control.RegisterUpdateAction(UpdateGUI); }
public void SetAxisControl(IAxisControl axisControl) { m_axisControl = axisControl; m_AxisName.color = m_axisControl.AxisColor; m_AxisName.text = m_axisControl.AxisName; m_AxisValue.textComponent.color = m_axisControl.AxisColor; m_axisControl.replaceTextComponentWithTMPro(m_AxisName); m_axisControl.replaceInputFieldWithTMPro(m_AxisValue, InputFieldEndEdit); updateAxisValue(); m_axisControl.registerUpdateAction(updateAxisValue); }
public AxisController(CardAxisName cardAxisName) { M_cardAxisName = cardAxisName; switch (M_cardAxisName) { case CardAxisName.凌华科技PCI_8164: ApsController = new CMotion.AdlinkAps_8164.ApsController(); break; case CardAxisName.凌华科技AMP_204Cor208C: ApsController = new CMotion.AdlinkAps_AMP204.ApsController(); break; case CardAxisName.研华科技PCI_1245orPCI_1285: ApsController = new CMotion.AdvantechAps.ApsController(); break; default: break; } }
public void OnDestroy() { m_Control.DeregisterUpdateAction(UpdateGUI); m_Control = null; }