Repair speed down
This commit is contained in:
parent
6d7f20fc6e
commit
9c2e253a74
@ -165,7 +165,7 @@ public class PlayerController : MonoBehaviour
|
|||||||
rb.AddForce(other.transform.forward * platform.speed * Time.deltaTime, ForceMode.Impulse);
|
rb.AddForce(other.transform.forward * platform.speed * Time.deltaTime, ForceMode.Impulse);
|
||||||
break;
|
break;
|
||||||
case PlatformManager.PlatformType.SpeedDown:
|
case PlatformManager.PlatformType.SpeedDown:
|
||||||
rb.AddForce(other.transform.forward * platform.speed * 10 * Time.deltaTime, ForceMode.Impulse);
|
rb.AddForce(-other.transform.forward * platform.speed * Time.deltaTime, ForceMode.Impulse);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
gDirection = -transform.up;
|
gDirection = -transform.up;
|
||||||
|
Loading…
Reference in New Issue
Block a user