protected override void Awake() { base.Awake(); iniRot = transform.eulerAngles; charScript = FindObjectOfType <TombiCharacterController>(); collCapsule = charScript.GetComponent <CapsuleCollider>(); // Set initial rotation and distance Rotation.Rotate(InitialHorizontalRotation, InitialVerticalRotation); _previousDistance = DesiredDistance; // Then let update handle everything UpdateCamera(); CameraTransform.ApplyTo(Camera); Debug.Log("Test"); }
void Update() { UpdateCamera(); CameraTransform.ApplyTo(Camera); }
void Update() { UpdateCamera(); CameraTransform.ApplyTo(Camera); // Apply the virtual transform to the actual transform }