private void OnWeaponUpClick() { int energy = mCamp.EnergyCostWeaponUpGrade; if (energy < 0) { mFacade.showMsg("weapon is maxLv can't up"); return; } if (mFacade.takeEnergy(energy)) { mCamp.UpWeaponGrade(); showCampInfo(mCamp); } else { mFacade.showMsg("energy is not enough"); } }