private void OnClickDM(ButtonScript obj, object args, int param1, int param2) { GamePlayer.Instance.BabyState(binst.InstId, false); NetConnection.Instance.setBattlebaby((uint)binst.InstId, false); if (MainbabyListUI.BabyFightingStandby != null) { MainbabyListUI.BabyFightingStandby(binst.InstId, false); } if (MainbabyState.SetKJBtnstateEventOk != null) { MainbabyState.SetKJBtnstateEventOk(false); } chuzhanBtn.gameObject.SetActive(true); daimingBtn.gameObject.SetActive(false); }
private void OnClickCZ(ButtonScript obj, object args, int param1, int param2) { if ((binst.GetIprop(PropertyType.PT_Level) - GamePlayer.Instance.GetIprop(PropertyType.PT_Level)) > 5) { PopText.Instance.Show(LanguageManager.instance.GetValue("babyLvGreaterThanMy")); } else { GamePlayer.Instance.BabyState(binst.InstId, true); NetConnection.Instance.setBattlebaby((uint)binst.InstId, true); if (MainbabyState.SetKJBtnstateEventOk != null) { MainbabyState.SetKJBtnstateEventOk(true); } if (MainbabyListUI.BabyFightingStandby != null) { MainbabyListUI.BabyFightingStandby(binst.InstId, true); } daimingBtn.gameObject.SetActive(true); chuzhanBtn.gameObject.SetActive(false); } }