start scene bug fix

This commit is contained in:
orsolya-st
2026-06-07 10:01:22 +02:00
parent 62b560b9f9
commit 538e5e8af2
3 changed files with 9 additions and 11 deletions
+1 -11
View File
@@ -65,16 +65,6 @@ public class DropletMovement : MonoBehaviour
rb.linearVelocity = new Vector2(rb.linearVelocity.x, jumpingPower);
}
//Jump animation
// if (rb.linearVelocityY < fallingAnimationVelocityThreshold && !isGrounded)
// {
// animator.SetBool("Falling", true);
// } else
// {
// animator.SetBool("Falling", false);
// }
//Walk animation
if (movement.x > 0) {
animator.SetBool("WalkingRight", true);
@@ -125,7 +115,7 @@ public class DropletMovement : MonoBehaviour
if (other.CompareTag("Hole"))
{
SceneManager.LoadScene(2, LoadSceneMode.Single);
Destroy(gameObject);
//Destroy(gameObject);
Debug.Log("Fell in hole!");
}