float GetPixelPerfectDepth() { if (pixelPerfectCamera != null && !pixelPerfectCamera.normalCamera.orthographic) { return(pixelPerfectCamera.GetParallaxLayerDepth(parallaxLayer)); } else { return(transform.position.z); } }