This commit is contained in:
2021-07-22 13:43:40 +02:00
parent c6ac107a3f
commit 97597b483d
5 changed files with 26 additions and 59 deletions

View File

@@ -35,12 +35,12 @@ public class PlayerControls : MonoBehaviour
if (switchy){
sprite.flipY = true;
rb.sharedMaterial = top;
controller.m_JumpForce = controller.m_JumpForce * 1.6f;
controller.m_JumpForce = controller.m_JumpForce * 2f;
}
else {
sprite.flipY = false;
rb.sharedMaterial = bottom;
controller.m_JumpForce = controller.m_JumpForce / 1.6f;
controller.m_JumpForce = controller.m_JumpForce / 2f;
}
sfx.clip = RotateSFX;
sfx.Play();