Exemple #1
0
    public static void Init(MonoBehaviour mono, GeneralGameSetting gameSetting)
    {
        instance = new DownloadManager();

        //这里还可以用多线程模式,速度其实差不多
        instance.httpDownload  = HttpDownload.GetHttpDownload(HttpDownload.DownloadMechanic.Coroutine, 3, mono);
        instance.m_gameSetting = gameSetting;
    }
 static int set_GameSetting(IntPtr L)
 {
     try
     {
         GeneralGameSetting arg0 = (GeneralGameSetting)ToLua.CheckObject <GeneralGameSetting>(L, 2);
         LuaFramework.AppConst.GameSetting = arg0;
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 FileManager(GeneralGameSetting setting)
 {
     m_gameSetting = setting;
     ReadLocalFileList();
 }
Exemple #4
0
 public static void Init(GeneralGameSetting setting)
 {
     s_instance = new FileManager(setting);
 }