Example #1
0
 private void Awake()
 {
     instance = this;
     myCameraOriginalPosition = Camera.main.transform.position;
     originalPosition         = transform.position;
     originalRotation         = transform.rotation;
     manipulator       = GetComponentInChildren <CharacterManipulatorScript>();
     stateHandler      = GetComponentInChildren <CharacterStateHandler>();
     freefallControls  = GetComponentInChildren <FreefallControls>();
     parachuteControls = GetComponentInChildren <ParachuteControls>();
 }
Example #2
0
 private void Start()
 {
     manipulatorScript = GetComponent <CharacterManipulatorScript>();
     hittableBodyParts = GetComponentsInChildren <HittableBodyPart>();
     animator          = GetComponentInParent <Animator>();
 }
Example #3
0
 void Awake()
 {
     originalPos       = transform.position;
     manipulatorScript = GetComponent <CharacterManipulatorScript>();
     animator          = GetComponent <Animator>();
 }
Example #4
0
 private void Awake()
 {
     myRb       = GetComponent <Rigidbody>();
     myAnimator = GetComponentInChildren <Animator>();
     _cms       = GetComponent <CharacterManipulatorScript>();
 }