Example #1
0
 // Call this function to launch the dash
 public void CallStart()
 {
     StartCoroutine(FreezeYConstraint());
     rb2D.AddForce(new Vector2(horizontalDirection.DirectionToFloat(), .0f) * THRUST);
     StartCoroutine(DashCooldown());
 }