static int HasInstance(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 0);
            bool o = SingletonMonoBehaviour <ResourcesManager> .HasInstance();

            LuaDLL.lua_pushboolean(L, o);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }