修复在手机上战斗报错
parent
947d647266
commit
223f8b11b4
|
@ -1,6 +1,7 @@
|
||||||
BattleLogManager = {}
|
BattleLogManager = {}
|
||||||
local this = BattleLogManager
|
local this = BattleLogManager
|
||||||
local isEditor = AppConst and AppConst.Platform == "EDITOR"
|
local isEditor = AppConst and AppConst.Platform == "EDITOR"
|
||||||
|
local isMobile = AppConst and (AppConst.Platform == "ANDROID" or AppConst.Platform == "IOS")
|
||||||
|
|
||||||
local isDebug = false
|
local isDebug = false
|
||||||
function LogBattle(str)
|
function LogBattle(str)
|
||||||
|
@ -13,7 +14,7 @@ function LogBattle(str)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local isLog = true or isEditor
|
local isLog = (true and not isMobile) or isEditor
|
||||||
|
|
||||||
local function pairsByKeys(t)
|
local function pairsByKeys(t)
|
||||||
local a = {}
|
local a = {}
|
||||||
|
|
Loading…
Reference in New Issue