/************************************************************************/

        #region Methods
        protected bool Equals(TransformParameters other)
        {
            return
                (Region.Equals(other.Region) &&
                 TargetSize.Equals(other.TargetSize) &&
                 PixelFormat == other.PixelFormat &&
                 ScaleQuality == other.ScaleQuality);
        }
Esempio n. 2
0
        private void ButtonSetup()
        {
            difficulty = Difficulty.Medium;
            difficultyText.GetComponent <TextMeshProUGUI>().text = difficulty.ToString();

            targetSize = TargetSize.Medium;
            sizeText.GetComponent <TextMeshProUGUI>().text = targetSize.ToString();

            duration = Duration.Normal;
            durationText.GetComponent <TextMeshProUGUI>().text = duration.ToString();
        }
Esempio n. 3
0
        public void ChangeSize(int change)
        {
            if (sizeButtonPos && sizeButtonNeg)
            {
                List <TargetSize> sizeList;
                sizeList = Enum.GetValues(typeof(TargetSize)).Cast <TargetSize>().ToList();

                targetSize = sizeList[(int)Mathf.Repeat(sizeList.IndexOf(targetSize) + change, sizeList.Count)];
                sizeText.GetComponent <TextMeshProUGUI>().text = targetSize.ToString();
            }
        }
Esempio n. 4
0
 public LODRenderTexture(TargetSize size, int lod, int depth, RenderTextureFormat format,
                         RenderTextureReadWrite readWrite, int antiAliasing)
 {
     this.size         = size;
     this.lod          = Mathf.Max(0, lod);
     this.depth        = depth;
     this.size         = size;
     this.format       = format;
     this.readWrite    = readWrite;
     this.antiAliasing = ParseAntiAliasing(antiAliasing);
 }