void CameraFollow() { focusArea.FollowBounds(player.GetComponent <Collider>().bounds); float posX = Mathf.Lerp(transform.position.x, focusArea.center.x + focusAreaFollowOffset.x, smoothX); float posY = Mathf.Lerp(transform.position.y, focusArea.center.y + focusAreaFollowOffset.y, smoothY); transform.position = new Vector3(posX, posY, transform.position.z); }