//Private Method private void Start() { rb = GetComponent <Rigidbody>(); cj = GetComponent <ConfigurableJoint>(); controlGround = FindObjectOfType <ControllerGround>(); }
// Start is called before the first frame update void Start() { controllerGround = FindObjectOfType <ControllerGround>().GetComponent <ControllerGround>(); }