Did a few things
This commit is contained in:
@@ -35,12 +35,12 @@ public class PlayerControls : MonoBehaviour
|
||||
if (switchy){
|
||||
sprite.flipY = true;
|
||||
rb.sharedMaterial = top;
|
||||
controller.m_JumpForce = controller.m_JumpForce * 2f;
|
||||
controller.m_JumpVelocity = controller.m_JumpVelocity * 2f;
|
||||
}
|
||||
else {
|
||||
sprite.flipY = false;
|
||||
rb.sharedMaterial = bottom;
|
||||
controller.m_JumpForce = controller.m_JumpForce / 2f;
|
||||
controller.m_JumpVelocity = controller.m_JumpVelocity / 2f;
|
||||
}
|
||||
sfx.clip = RotateSFX;
|
||||
sfx.Play();
|
||||
@@ -69,7 +69,7 @@ public class PlayerControls : MonoBehaviour
|
||||
|
||||
}
|
||||
void FixedUpdate(){
|
||||
controller.Move(horizonatalaxis * runspeed * Time.fixedDeltaTime, jumping);
|
||||
controller.Move(horizonatalaxis * runspeed * 10f * Time.fixedDeltaTime, jumping);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user