多媒体库再完善,未初始化时调用不会报错了

This commit is contained in:
MrZ626
2020-12-10 13:18:43 +08:00
parent 5c073257b7
commit 8e1c53b1e7
5 changed files with 27 additions and 8 deletions

View File

@@ -1,4 +1,10 @@
local SFX={}
local SFX={
getCount=function()return 0 end,
fieldPlay=NULL,
play=NULL,
fplay=NULL,
reset=NULL,
}
function SFX.init(list)
SFX.init=nil
local rem=table.remove