void OnTriggerEnter2D(Collider2D col) { switch (col.tag) { case "Plattform": rb2d.velocity = new Vector3(0f, 0f, 0f); player.transform.parent = col.transform; player.IsGrounded = true; break; case "Suelo": player.IsGrounded = true; player.FalseAnyAnimStateAtGrounding(); playerFX.StopLoopClips(); break; } }