Ejemplo n.º 1
0
    static int CreateDirectory(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        string arg0 = LuaScriptMgr.GetLuaString(L, 1);
        bool   o    = UtilCommon.CreateDirectory(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Ejemplo n.º 2
0
 private void InitDataPath()
 {
     if (Application.isEditor && !UtilCommon.IsDirectoryExist(UtilCommon.resourcesPath))
     {
         UtilCommon.CreateDirectory(UtilCommon.resourcesPath);
     }
     if (!UtilCommon.IsDirectoryExist(UtilCommon.storePath))
     {
         UtilCommon.CreateDirectory(UtilCommon.storePath);
     }
 }