private void ChangeTarget(int step) { m_currentIndex += step; if (m_currentIndex == m_targets.Count) { m_currentIndex = 0; } else if (m_currentIndex < 0) { m_currentIndex = m_targets.Count - 1; } for (int i = 0; i < m_targets.Count; i++) { ToggleRenderers(m_targets[i], false); } m_currentTarget = m_targets[m_currentIndex]; m_currentTarget.position = m_correctPosition; m_currentTarget.rotation = m_correctRotation; ToggleRenderers(m_currentTarget, true); m_cameraController.ChangeCharacter(m_currentTarget.gameObject); }