// Start is called before the first frame update void Start() { rigidbody = GetComponent <Rigidbody>(); capsuleCollider = GetComponent <CapsuleCollider>(); inputController = GetComponent <InputController>(); mainCharacterAnimator = GetComponent <MainCharacterAnimator>(); capsuleCollider.material = physicMaterials[0]; }
// Start is called before the first frame update void Start() { movementController = rootGameObject.GetComponent <MovementController>(); mainCharacterAnimator = rootGameObject.GetComponent <MainCharacterAnimator>(); }