This commit is contained in:
haitem 2022-01-30 12:18:26 +01:00
parent 6cf7559ef0
commit a90b9d97e4

View File

@ -184,7 +184,7 @@ public class PlayerController : MonoBehaviour
{ {
Physics.gravity = this.downDirection * 9.81f; Physics.gravity = this.downDirection * 9.81f;
PlatformManager platform = pullObject.GetComponent<PlatformManager>(); PlatformManager platform = other.gameObject.GetComponent<PlatformManager>();
if (platform != null) if (platform != null)
{ {