private void Start() { cursorLockCheck = FindObjectOfType <CursorLockCheck>(); pauseBehaviour = FindObjectOfType <PauseBehaviour>(); cameraTarget = GameObject.FindGameObjectWithTag(TagList.Player); cameraOffset = cameraTarget.transform.position - transform.position; enableUpdate = true; }
private void Start() { rigid = GetComponent <Rigidbody>(); cursorLockCheck = FindObjectOfType <CursorLockCheck>(); pauseBehaviour = FindObjectOfType <PauseBehaviour>(); }