Some changis and remake filp level

This commit is contained in:
haitem
2021-01-31 11:07:21 +01:00
parent 9695241f31
commit 55e9faeffc
3 changed files with 161 additions and 17 deletions

View File

@@ -29,7 +29,7 @@ public class PlayerManager : MonoBehaviour
private GameObject pushPullObject;
private float pushPullObjectDistance;
public float dashPower = 40f;
public float dashTime = 0.2f;
public float dashTime = 0.3f;
private float actualDashTime;
private int dashButton;
private bool dash = false;
@@ -164,7 +164,7 @@ public class PlayerManager : MonoBehaviour
{
rigidBody.AddForce(
(transform.right * dashPower * 10 * 5 * 1 * Time.deltaTime) +
(transform.up * 1 * 10 * Time.deltaTime),
(transform.up * 2 * 10 * Time.deltaTime),
ForceMode.VelocityChange
);
dash = true;
@@ -175,7 +175,7 @@ public class PlayerManager : MonoBehaviour
{
rigidBody.AddForce(
(transform.right * dashPower * 10 * 5 * -1 * Time.deltaTime) +
(transform.up * 1 * 10 * Time.deltaTime),
(transform.up * 2 * 10 * Time.deltaTime),
ForceMode.VelocityChange
);
dash = true;