示例#1
0
    void Start()
    {
        Cursor.lockState = CursorLockMode.Locked;

        Camera.SetFollowTransform(CameraFollowPoint);
        Camera.IgnoredColliders = Character.GetComponentsInChildren <Collider>().ToList();
    }
示例#2
0
        private void Start()
        {
            Cursor.lockState = CursorLockMode.Locked;

            // Tell camera to follow transform
            OrbitCamera.SetFollowTransform(CameraFollowPoint);

            // Ignore the character's collider(s) for camera obstruction checks
            OrbitCamera.IgnoredColliders = Character.GetComponentsInChildren <Collider>();
        }