/// <summary> /// 设置升级需要材料 /// </summary> private void SetUpLevelNeed() { if (m_HaveCoin >= m_NeedCoin && m_HaveWood >= m_NeedWood) { BuildDC.Send_BuildlevelUpRequest(m_build.ID); } else //弹出提示框 { NGUIUtil.ShowFreeSizeTipWnd(NGUIUtil.GetStringByKey(10000073), null, 0, 2f, ConstantData.iDepBefore3DModel); } }
/// <summary> /// 升级 /// </summary> /// <param name="sender">Sender.</param> private void BtnShengJi_OnClickEventHandler(UIButton sender) { //.0能升级.1金币不足.2其他材料不足.3满级. CanLevelResult result = buildingM.GetLevelCanUP(m_Info); if (result == CanLevelResult.CanUp) { BackUpInfo(); BuildDC.Send_BuildlevelUpRequest(m_Info.ID); } }