wie man dissapear zu einem Objekt in der Einheit macht
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