wie man übergeordnete GameObject in Einheit bekommt
childObject.transform.parent.gameObject
Koshin_S_Hegde
childObject.transform.parent.gameObject
public gameobject player
public gameobject Newparent
player.transform.parent = newParent.transform;
void OnCollisionEnter(Collision collision)
{
PlayerController pl = collision.gameObject.GetComponentInParent<PlayerController>();
}