Repair speed down

This commit is contained in:
haitem 2022-01-29 15:41:54 +01:00
parent 6d7f20fc6e
commit 9c2e253a74
1 changed files with 1 additions and 1 deletions

View File

@ -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;