Exemplo n.º 1
0
        private byte[] LoadStreamAsset(string path)
        {
            var fullPath = Application.streamingAssetsPath + "/" + path;

            byte[] data = null;
            if (fullPath.Contains("://"))
            {
                if (!DPlatform.IsEditorPlatform() && DPlatform.IsAndroidPlatform())
                {
                    data = DodLibUtil.GetDodLib().LoadStreamAssetFile(fullPath);
                }
            }
            else
            {
                data = AssetBundleUtil.ReadFile(fullPath);
            }

            return(data);
        }