Skip to content

Commit 165cdb0

Browse files
committed
actually use cached character controller
1 parent 9e8b9c1 commit 165cdb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PracticeModManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ Text NewGrabbedObjectText()
299299
string GetPlayerTextString()
300300
{
301301
Vector3 position = playerMotor.transform.position;
302-
Vector3 velocity = playerMotor.GetComponent<CharacterController>().velocity;
302+
Vector3 velocity = characterController.velocity;
303303
Vector3 rotation = playerMotor.transform.rotation.eulerAngles;
304304
float scale = playerMotor.transform.localScale.x;
305305
string dynamicInfo = "";

0 commit comments

Comments
 (0)