Example #1
0
 static int CleanAllRecord(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         RecordManager.CleanAllRecord();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static void RecordModeGUIWindow(int id)
    {
        if (RecordManager.GetData(c_recordName).GetRecord(c_qucikLunchKey, true))
        {
            if (GUILayout.Button("开启后台", GUILayout.ExpandHeight(true)))
            {
                RecordManager.SaveRecord(c_recordName, c_qucikLunchKey, false);
            }
        }
        else
        {
            if (GUILayout.Button("关闭后台", GUILayout.ExpandHeight(true)))
            {
                RecordManager.SaveRecord(c_recordName, c_qucikLunchKey, true);
            }
        }

        if (GUILayout.Button("清除持久化数据", GUILayout.ExpandHeight(true)))
        {
            RecordManager.CleanAllRecord();
        }
    }