So I have an object (cube) to be a child of my player (Player). I have used the following script:
public void SetParent(Transform Player)
{
player.transform.SetParent(Player);
}
This script worked but now is there any other script to delete the parent/child relationship. I think I would have to turn "player.transform.SetParent(Player)) into a variable and then set it to false but I am not sure. Thank you in advance.