private void OnValidate() { if (InputManager.Exists) { m_cachedInputAction = InputManager.GetAction(m_schemeName, m_actionName); } }
#pragma warning restore 0649 public InputAction Get() { if (m_cachedInputAction == null && InputManager.Exists) { m_cachedInputAction = InputManager.GetAction(m_schemeName, m_actionName); } return(m_cachedInputAction); }
public InputBinding Get() { if (m_cachedInputBinding == null && InputManager.Exists) { var action = InputManager.GetAction(m_schemeName, m_actionName); if (action != null) { m_cachedInputBinding = action.GetBinding(m_bindingIndex); } } return(m_cachedInputBinding); }
private void OnValidate() { if (InputManager.Exists) { var action = InputManager.GetAction(m_schemeName, m_actionName); if (action != null) { m_cachedInputBinding = action.GetBinding(m_bindingIndex); } else { m_cachedInputBinding = null; } } }