Пример #1
0
 void Start()
 {
     instance     = this;
     oldPixelSize = pixelSize;
     GetComponent <Camera>().pixelRect = new Rect(0, 0, Screen.width / pixelSize, Screen.height / pixelSize);
     for (int i = 0; i < otherCameras.Length; i++)
     {
         otherCameras[i].pixelRect = new Rect(0, 0, Screen.width / pixelSize, Screen.height / pixelSize);
     }
 }
Пример #2
0
 void Start()
 {
     screenEffect = Camera.main.GetComponent <CameraScreenGrab>();
     once         = true;
 }