Ufak bir video çekebilirseniz daha net anlaşılır. Açıkçası pek bişey belirmedi aklımda. Ayrıca hareket method'unuzu da paylaşırsanız daha sağlıklı olur
// Hareket Komutları - Başlangıç if (SimpleInput.GetAxisRaw("Horizontal") > 0) { if (!MovementStart) { PlayerMainSpeed = 1f; MovementStart = true; } if (PlayerMainSpeed < 5.75f) PlayerMainSpeed += Time.fixedDeltaTime*PlayerSpeed; Rb.velocity = Vector2.Lerp(Rb.velocity, new Vector2(SimpleInput.GetAxis("Horizontal") * PlayerMainSpeed,Rb.velocity.y), 10f * Time.fixedDeltaTime); } else if (SimpleInput.GetAxisRaw("Horizontal") < 0) { if (!MovementStart) { PlayerMainSpeed = -1f; MovementStart = true; } if (PlayerMainSpeed > -5.75f) PlayerMainSpeed -= Time.fixedDeltaTime*PlayerSpeed;
Rb.velocity = Vector2.Lerp(Rb.velocity, new Vector2(SimpleInput.GetAxis("Horizontal") * -PlayerMainSpeed, Rb.velocity.y), 10f * Time.fixedDeltaTime); } else if (Mathf.Abs(SimpleInput.GetAxisRaw("Horizontal")) <= 0) { MovementStart = false; PlayerMainSpeed = Mathf.Lerp(PlayerMainSpeed, 0, Time.time); Rb.velocity = Vector2.Lerp(Rb.velocity, new Vector2(0,Rb.velocity.y), Time.fixedDeltaTime); } // Hareket Komutları - Bitişhareket komutlarımı ekledim hocam.