private void OnCampUpClick() { int energy = mCamp.EnergyCostCampUpGrade; if (energy < 0) { mFacade.showMsg("camp is maxLv can't up"); return; } if (mFacade.takeEnergy(energy)) { mCamp.UpGradeCamp(); showCampInfo(mCamp); } else { mFacade.showMsg("energy is not enough"); } }