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); } }
void Start() { screenEffect = Camera.main.GetComponent <CameraScreenGrab>(); once = true; }