/// <summary> /// 点击下一个职业按钮 /// </summary> /// <param name="obj"></param> private void OnClickNextJobButton(bool obj) { if (obj) { selectIndex--; if (selectIndex < 0) { selectIndex = m_JobList.Count - 1; } } else { selectIndex++; if (selectIndex > m_JobList.Count - 1) { selectIndex = 0; } } CloneRole(m_JobList[selectIndex].Id); string jobName = m_JobList[selectIndex].Name; string jobDes = m_JobList[selectIndex].Desc; selectRoleView.SetDes(jobName, jobDes); }