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>(); }
private void Start() { manipulatorScript = GetComponent <CharacterManipulatorScript>(); hittableBodyParts = GetComponentsInChildren <HittableBodyPart>(); animator = GetComponentInParent <Animator>(); }
void Awake() { originalPos = transform.position; manipulatorScript = GetComponent <CharacterManipulatorScript>(); animator = GetComponent <Animator>(); }
private void Awake() { myRb = GetComponent <Rigidbody>(); myAnimator = GetComponentInChildren <Animator>(); _cms = GetComponent <CharacterManipulatorScript>(); }