Fix bug
This commit is contained in:
parent
6cf7559ef0
commit
a90b9d97e4
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user