private void Start() { tpCamera = GameObject.FindObjectOfType <ThirdPersonCamera>(); cameraSwitcher = tpCamera.gameObject.GetComponent <CameraStyleSwitcher>(); if (tpCamera) { tpCamera.SetMainTarget(this.transform); } tpInput = this.GetComponent <PlayerInput>(); tpMovement = this.GetComponent <PlayerMovement>(); }
private void Awake() { camSwitch = GameObject.FindObjectOfType <CameraStyleSwitcher>(); autoCam = GameObject.FindObjectOfType <AutoCamera>(); }