Hi .black!
Try this! Store the parent in another **Transform** variable!
public Transform daVodaParent;
public Rigidbody daVoda;
void Start()
{
//You don't need to set daVoda to null!! Already the case.
}
void Update()
{
//ADD THIS
daVodaParent = transform.parent;
daVoda = daVodaParent.rigidbody;
}
This should work!
Bests, Math
↧