From a90b9d97e4f9acb8c475d5ddfeed277b74be53e3 Mon Sep 17 00:00:00 2001 From: haitem Date: Sun, 30 Jan 2022 12:18:26 +0100 Subject: [PATCH] Fix bug --- Assets/Scripts/PlayerController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index 915a6bb..fe4f602 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -184,7 +184,7 @@ public class PlayerController : MonoBehaviour { Physics.gravity = this.downDirection * 9.81f; - PlatformManager platform = pullObject.GetComponent(); + PlatformManager platform = other.gameObject.GetComponent(); if (platform != null) {