Delete temp debug codes in 'sapwnListener.lua'

This commit is contained in:
2024-12-14 20:31:25 +08:00
parent 26019fe3c1
commit 45fa593167
-35
View File
@@ -23,39 +23,4 @@ do
local typeName = base:getTypeName() or 'None'
trigger.action.outText(typeName,10)
end
end
local unit = Unit.getByName('Test-1-1')
if unit then
if unit:isActive() then
trigger.action.outText('Uncontroll is Active.',5)
else
trigger.action.outText('Uncontroll is not Active.',5)
local controller = unit:getGroup():getController()
local Start = {
id = 'Start',
params = {
}
}
controller:setCommand(Start)
if unit:isActive() then
trigger.action.outText('Start command can Active uncontrolled group.',5)
end
end
end
if not unit then
trigger.action.outText('no unit.',5)
end
local unit = Unit.getByName('Test-1-1')
if not unit then
trigger.action.outText('no unit.',5)
end
if unit then
local desc = unit:getDesc()
local msg = mist.utils.tableShow(desc)
trigger.action.outText(msg,5)
end