// Start is called before the first frame update void Awake() { rigidBody = GetComponent <Rigidbody>(); mainCamera = FindObjectOfType <Camera>(); charRot = GetComponent <CharacterRotationController>(); //set max rotation velocity rigidBody.maxAngularVelocity = maxVelocity; timerTime = 2f; holdTime = 0; }