public void LevelUp(int id, int aLev, int bLev) { int money = 0; if (id == unitId && unitLev == shortestScript.GetUnitLev()) { if (unitLev < gameManager.GetSaveData().maxFusionLev) { money = gameManager.GetMoney() - levelUpCost; gameManager.SetMoney(money); int a = shortestScript.GetUnitLev() + 1; shortestScript.SetUnitLev(a); shortestScript.setStat(); shortestScript.SetMaxHealth(); fusionManager.SetUnitNum(thisUnitNum = fusionManager.GetUnitNum() - 1); Destroye(); } else { ComeBack(); } } }