Пример #1
0
    private static int GetInstance(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 0);
            FightLogic instance = FightLogic.GetInstance();
            ToLua.Push(L, instance);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }