Ejemplo n.º 1
0
 // 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];
 }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     movementController    = rootGameObject.GetComponent <MovementController>();
     mainCharacterAnimator = rootGameObject.GetComponent <MainCharacterAnimator>();
 }