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

            byte[] data = null;
            if (fullPath.Contains("://"))
            {
#if UNITY_ANDROID && !UNITY_EDITOR
                data = DodLib.LoadStreamAssetFile(fullPath);
#endif
            }
            else
            {
                data = AssetBundleUtil.ReadFile(fullPath);
            }

            return(data);
        }