/** 点击事件 */ public override void buttonEventBase(GameObject gameObj) { base.buttonEventBase(gameObj); if (gameObj.name == "close") { finishWindow(); } else if (gameObj.name == "putInButton") //一键充入 { long storeExp = StarSoulManager.Instance.getStarSoulExp(); if (storeExp == 0) { MaskWindow.UnlockUI(); return; } // 升满级需要的经验 long needExp = starSoul.getMaxExp() - starSoul.getEXP(); if (storeExp < needExp) { needExp = storeExp; } oldStarSoul = (StarSoul)starSoul.Clone(); setStarSoulIndefity(starSoul.uid, needExp); (FPortManager.Instance.getFPort("StarSoulEquipFPort") as StarSoulEquipFPort).doStrengStarSoulAccess(starSoul.uid, needExp, doStrengStarSoulFinshed); } else if (gameObj.name == "oneUpButton") //升一级 { long storeExp = StarSoulManager.Instance.getStarSoulExp(); if (storeExp == 0) { MaskWindow.UnlockUI(); return; } // 升一级需要的经验 long needExp = starSoul.getEXPUp() - starSoul.getEXP(); if (storeExp < needExp) { needExp = storeExp; } oldStarSoul = (StarSoul)starSoul.Clone(); setStarSoulIndefity(starSoul.uid, needExp); (FPortManager.Instance.getFPort("StarSoulEquipFPort") as StarSoulEquipFPort).doStrengStarSoulAccess(starSoul.uid, needExp, doStrengStarSoulFinshed); } }