public override void Init(GameObject owner) { base.Init(owner); LuaState = new LuaEnv(); LuaLoader.InitLoader(LuaState); LuaLibrary.InitLibrary(LuaState); timer = 0f; }
public void Init() { LuaState = new LuaEnv(); LuaLoader.InitLoader(LuaState); LuaLibrary.InitLibrary(LuaState); }