Replaced deprecated "get" cs func in fps tutorial

In the 3D fps tutorial, changed the camera global transform
function to use direct property setting instead of getter
since the getter is deprecated in 3.2.1.
This commit is contained in:
DocQuantum
2020-03-28 11:58:37 -05:00
parent b4eb4e7e3d
commit a64854aa42

View File

@@ -290,7 +290,7 @@ Add the following code to ``Player.gd``:
// -------------------------------------------------------------------
// Walking
_dir = new Vector3();
Transform camXform = _camera.GetGlobalTransform();
Transform camXform = _camera.GlobalTransform;
Vector2 inputMovementVector = new Vector2();