private void Update() { if (Input.GetButtonDown(m_PlayerPrefix + "Fire2")) { Shop.LeaveTheShop(); } if (Input.GetAxis(m_PlayerPrefix + "Horizontal") > AxisValue && !m_selected) { m_SwitchCoroutine = StartCoroutine(CurrentIndexChanged(m_CurrentSelectedID + 1)); } if (Input.GetAxis(m_PlayerPrefix + "Horizontal") < -AxisValue && !m_selected) { StartCoroutine(CurrentIndexChanged(m_CurrentSelectedID - 1)); } if (Input.GetAxis(m_PlayerPrefix + "Vertical") > AxisValue && !m_selected) { StartCoroutine(CurrentIndexChanged(m_CurrentSelectedID - 10)); } if (Input.GetAxis(m_PlayerPrefix + "Vertical") < -AxisValue && !m_selected) { m_SwitchCoroutine = StartCoroutine(CurrentIndexChanged(m_CurrentSelectedID + 10)); } if (Input.GetButtonDown(m_PlayerPrefix + "Jump")) { m_ValidationCoroutine = StartCoroutine(ValidationButtonPressed()); } }