public T GetPhotosphere <T>(string key) where T : Photosphere { if (curSphere == null || curSphere.CubemapName != key) { if (!photospheres.ContainsKey(key)) { CreatePhotosphere <T>(key); } curSphere = photospheres[key]; } return((T)curSphere); }
private bool Photo_CheckIsCubemapAvailable(Photosphere source) { return(cache.IsCached(source.CubemapName + codec.ContentType)); }
private float Photo_GetRotation(Photosphere source) { return(RotationNeeded?.Invoke(source) ?? 0); }
private void Photo_SetRotation(Photosphere source, float rotation) { RotationUpdated?.Invoke(source, rotation); }
private void Photo_SetPosition(Photosphere source, Vector3 position) { PositionUpdated?.Invoke(source, position); }
private void Photo_Ready(Photosphere obj) { PhotosphereReady?.Invoke(obj); }
private Texture2D Photo_CubemapNeeded(Photosphere source) { return(CubemapNeeded?.Invoke(source)); }