Firstborn/Library/PackageCache/com.unity.ads@3.7.5/Editor/Source/SkAdNetworkRemoteSource.cs

18 lines
397 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
using System.IO;
using System.Net;
using UnityEngine;
namespace UnityEngine.Advertisements.Editor {
internal class SkAdNetworkRemoteSource : ISkAdNetworkSource {
public string Path { get; }
public SkAdNetworkRemoteSource(string path) {
Path = path;
}
public Stream Open() {
return new WebClient().OpenRead(Path);
}
}
}