void Start() { holderTest = FindObjectOfType<HolderTest>(); camControl = GetComponentInParent<CameraControlScript>(); playerMovement = GetComponentInParent<PlayerMovement>(); dieSound = GetComponent<AudioSource>(); }
// Use this for initialization void Start() { offset = Camera.main.transform.position - transform.position; WhiteDefaultOrientation = Quaternion.identity; BlackDefaultOrientation = Quaternion.Euler(0, 180, 0); instance = this; AutoRotate = true; rotInterp = 0; CalibrateAccelerometer(); }
// Start is called before the first frame update void Start() { myCamera = Camera.main.GetComponent <CameraControlScript>(); myCollider = this.GetComponent <CapsuleCollider>(); playerAnimator = GetComponent <Animator>(); }
// Use this for initialization void Start() { cameraControlScript = TargetCamera.GetComponent <CameraControlScript>(); }
public void SetCameraController(CameraControlScript cam) { cameraController = cam; }