/// <summary> /// 确认更换或添加英雄 /// </summary> public void OKClick() { ButtonSound.ButtonClickPlay(); if (selectHeroInfo != null) { if (heroInfo == null) { TeamModel.Add(selectHeroInfo); } else { TeamModel.Change(heroInfo, selectHeroInfo); } } BackToFormation(); }