void Start() { var serialiser = new ImmlSerialiser(new UnityElementFactory()); var resourceAcquisitionService = new ResourceAcquisitionService(new InMemoryCache()); var immersiveEnvironment = new ImmersiveEnvironment <GameObject>(serialiser, resourceAcquisitionService, new UnityLog()); Debug.Log("Loading scene from resource"); var resStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("IMMLSharp.Unity.scene.imml"); Debug.Log("Scene resource ready"); var t = immersiveEnvironment.CreateAsync(resStream); t.Wait(); immersiveEnvironment.Run(this.gameObject); Debug.Log("Loading complete"); }
public LocalAndRemoteAcquisitionService(ICacheService cacheService) { this.CacheService = cacheService; _HttpAcquisitionService = new ResourceAcquisitionService(cacheService); }