private void OnEnable() { if (camera == null) { camera = FindObjectOfType<ParallaxCamera>(); } if (camera != null) { prevCamPosition = camera.transform.position; } }
private void Awake() { options = (ParallaxCamera)target; }