//返回人物选择界面 public void OnClick_CloseCreateRoleFrame() { isShowFirst = true; var e = new UIEvent_ShowCreateRole(0); EventDispatcher.Instance.DispatchEvent(e); LastChooseType = -1; var ee = new UIEvent_SelectRole_Index(LastSelectIndex); EventDispatcher.Instance.DispatchEvent(ee); }
public void OnClick_ShowCreateRoleFrame() { isShowFirst = true; var e = new UIEvent_ShowCreateRole(1); EventDispatcher.Instance.DispatchEvent(e); for (int i = 0; i < CreateTypeList.Count; i++) { var trigger = CreateTypeList[i]; var toggle = CreateTypeList[i].gameObject.GetComponent <UIToggle>(); if (toggle != null) { toggle.Set(i == 0); } } }