コード例 #1
0
    private void Start()
    {
        cursorLockCheck = FindObjectOfType <CursorLockCheck>();
        pauseBehaviour  = FindObjectOfType <PauseBehaviour>();

        cameraTarget = GameObject.FindGameObjectWithTag(TagList.Player);

        cameraOffset = cameraTarget.transform.position - transform.position;

        enableUpdate = true;
    }
コード例 #2
0
 private void Start()
 {
     rigid           = GetComponent <Rigidbody>();
     cursorLockCheck = FindObjectOfType <CursorLockCheck>();
     pauseBehaviour  = FindObjectOfType <PauseBehaviour>();
 }