function BlockDefenceTowerLevelUp() local Event = EventClass.Event; Event:Pause(); Event:LockPlayer(); coroutine.yield(); Event:Print("/vnLevel up?/b/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if ( Event:GetSelect() == 0 ) then if ( Event:IsMoneyOK() ) then Event:LevelUpBlockTower(); Event:PlaySe(soundList.SoundID.SE_equip); else Event:CloseMessage(); coroutine.yield(); Event:PlaySe(soundList.SoundID.SE_failure_b); Event:Print("You don’t have enough./b/co"); Event:WaitContinue(); coroutine.yield(); end end Event:CloseMessage(); coroutine.yield(); Event:RestoreTowerStatusTempDraw(); Event:Play(); Event:UnlockPlayer(); coroutine.yield(); end