Inheritance: MonoBehaviour
コード例 #1
0
    // Start is called before the first frame update
    void Start()
    {
        camPixels  = Camera.main.GetComponent <Pixelation>();
        blackCover = Camera.main.GetComponentInChildren <SpriteRenderer>();

        //transitionFrames = maxTransitionFrames;
        //darkenFrames = maxDarkenFrames;

        //The number of pixels that the starting camera has
        startingPixelNumber = camPixels.BlockCount;

        SetTransitionState(TransitionStates.unfading);
    }
コード例 #2
0
        public static Bitmap GetPoster(PlexObject stream, bool waitWindow = true)
        {
            if (waitWindow)
            {
                return((Bitmap)WaitWindow.WaitWindow.Show(GetPoster, @"Grabbing poster", stream));
            }

            var result = GetImageFromUrl(stream.StreamInformation.ContentThumbnailUri);

            if (result == Resources.unavailable)
            {
                return(result);
            }
            if (!ObjectProvider.Settings.Generic.AdultContentProtection)
            {
                return(result);
            }

            return(Methods.AdultKeywordCheck(stream) ? Pixelation.Pixelate(result, 64) : result);
        }
コード例 #3
0
 void Start()
 {
     pixelation         = GetComponent <Pixelation>();
     pixelation.enabled = false;
     pixelationLevel    = 0;
 }