コード例 #1
0
        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);
        }
コード例 #2
0
 private bool Photo_CheckIsCubemapAvailable(Photosphere source)
 {
     return(cache.IsCached(source.CubemapName + codec.ContentType));
 }
コード例 #3
0
 private float Photo_GetRotation(Photosphere source)
 {
     return(RotationNeeded?.Invoke(source) ?? 0);
 }
コード例 #4
0
 private void Photo_SetRotation(Photosphere source, float rotation)
 {
     RotationUpdated?.Invoke(source, rotation);
 }
コード例 #5
0
 private void Photo_SetPosition(Photosphere source, Vector3 position)
 {
     PositionUpdated?.Invoke(source, position);
 }
コード例 #6
0
 private void Photo_Ready(Photosphere obj)
 {
     PhotosphereReady?.Invoke(obj);
 }
コード例 #7
0
 private Texture2D Photo_CubemapNeeded(Photosphere source)
 {
     return(CubemapNeeded?.Invoke(source));
 }