Example #1
0
    public static string GetResStreamingPath(ResType res)
    {
#if UNITY_EDITOR || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX
        return(string.Format("file:///{0}/{1}_{2}.dat", Application.streamingAssetsPath, RuntimeInfo.GetPlatformString(), res.ToString()));
#elif UNITY_ANDROID
        return(string.Format("{0}/{1}_{2}.dat", Application.streamingAssetsPath, RuntimeInfo.GetPlatformString(), res.ToString()));
#else
        return(string.Format("file:///{0}/{1}_{2}.dat", Application.streamingAssetsPath, RuntimeInfo.GetPlatformString(), res.ToString()));
#endif
    }
Example #2
0
    public void GlobalInit()
    {
        m_ErrPrefix = "<Plateform:" + RuntimeInfo.GetPlatformString()
                      + ", Package:" + NativeInterface.GetPackageName()
                      + ", Verseion:" + Utility.VerToDotStr(ServerSetting.ClientVer)
                      + ">";
        Thread th = new Thread(new ParameterizedThreadStart(SendThread));

        th.Start(null);
    }
Example #3
0
    public static void GetAnnouncement()
    {
        string pn = SDKMgr.PACKAGE_NAME;

        if (pn.Length > 0)
        {
            pn = "_" + pn;
        }
        string file = ServerSetting.ResFtp + "/Announcement/" + RuntimeInfo.GetPlatformString() + pn + ".xml";

        FTPClient.Instance.AddDownload(DownloadType.DOWNLOAD_ANNOUNCEMENT, file, null);
    }