comment faire de la dissposition un objet dans l'unité
public class Player : MonoBehaviour
{
//Set this game object by dragging on UI
public GameObject body;
private void OnCollisionEnter2D(Collision2D other) {
if(body != null){
body.GetComponent<Renderer>().enabled = false;
Destroy(body);
}
}
}
The Walker Fox