Unity 6 (6000.0.34f1)
Whatever I try, nothing seems to work and nothing I searched put me on the way.
here’s my code :
private void OnCollisionEnter2D(Collision2D other)
{
other.transform.SetParent(platform);
Debug.Log("collision " + other);
}
private void OnCollisionExit2D(Collision2D other)
{
other.transform.SetParent(null);
}
moving platform