some changis

This commit is contained in:
haitem
2021-01-31 15:20:36 +01:00
parent 97f67f18a2
commit 2e2783bc6c
2 changed files with 7 additions and 3 deletions

View File

@@ -119,7 +119,6 @@ public class PlayerManager : MonoBehaviour
if (!cannotMove && (!onLadder || (onLadder && (activeAbility.Count < 0 || activeAbility[0] != 4))))
{
Jump();
FindObjectOfType<AudioManager>().Play("Jump");
}
}
@@ -295,6 +294,7 @@ public class PlayerManager : MonoBehaviour
{
dubleJump = false;
}
FindObjectOfType<AudioManager>().Play("Jump");
pushPullObject = null;
rigidBody.AddForce(
(transform.up * jump * 10 * Time.deltaTime),
@@ -365,7 +365,6 @@ public class PlayerManager : MonoBehaviour
speed += power;
runSpeed += power;
FindObjectOfType<AudioManager>().Play("Jump");
}
else if (powerType == PowerCubeManager.PowerType.Jumper)
{