changing dash params
This commit is contained in:
		
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -111,7 +111,7 @@ public class PlayerBehavior : MonoBehaviour
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                if (!playerController.IsGrounded() && isDash && (currentDash < dashTime)) {
 | 
					                if (!playerController.IsGrounded() && isDash && (currentDash < dashTime)) {
 | 
				
			||||||
                    if (!forceAdded) {
 | 
					                    if (!forceAdded) {
 | 
				
			||||||
                        dashVec = new Vector2(1f * forward, -1f) * dashForce;
 | 
					                        dashVec = new Vector2(0.5f * forward, -1f) * dashForce;
 | 
				
			||||||
                        _rb.AddForce(dashVec, ForceMode2D.Impulse);
 | 
					                        _rb.AddForce(dashVec, ForceMode2D.Impulse);
 | 
				
			||||||
                        forceAdded = true;
 | 
					                        forceAdded = true;
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user