protected virtual void UpdateCameraStates() { // CAMERA STATE - you can change the CameraState here, the bool means if you want lerp of not, make sure to use the same CameraState String that you named on TPCameraListData if (cam == null) { cam = FindObjectOfType <ThirdPersonCamera>(); if (cam == null) { return; } if (cam) { cam.SetMainTarget(this.transform); cam.Init(); } } if (changeCameraState) { cam.ChangeState(desiredCameraState, customlookAtPoint, smoothCameraState); } else if (blackboard.isCrouching) { cam.ChangeState("Crouch", true); } else { cam.ChangeState("MovementState", true); } }