wie man ein Objekt in Einheit zerstört
Destroy(gameObject);
Envious Emu
Destroy(gameObject);
Destroy(this.gameObject);
//Box collider is triggered
// Use "Destroy ( other.gameObject );" to destroy other game object
private void OnTriggerEnter ( Collider other )
{
// if(other.tag == "Plane" ){
Destroy ( this.gameObject );
// }
}
//Box collider is not triggered
// private void OnCollisionEnter ( Collision collision )
// {
// Destroy ( gameObject );
// }