Stop horizontal velocity whe dropping down
This commit is contained in:
@@ -4,8 +4,8 @@ using Object = System.Object;
|
||||
|
||||
public class DamageHandler : MonoBehaviour
|
||||
{
|
||||
public float threshold = 0.05f;
|
||||
public float multiplier = 5f;
|
||||
public float threshold = 2.5f;
|
||||
public float multiplier = 0.5f;
|
||||
|
||||
public float maxHealth = 1f;
|
||||
public float health;
|
||||
|
||||
@@ -214,6 +214,7 @@ public class DropletMovement : MonoBehaviour
|
||||
{
|
||||
Collider2D playerCollider = GetComponent<Collider2D>();
|
||||
rb = GetComponent<Rigidbody2D>();
|
||||
rb.linearVelocityX = 0;
|
||||
|
||||
playerCollider.isTrigger = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user