copy an object unity script code example
Example: how to clone something unity
public GameObject GameOjectYouWantToClone;
GameObject CloneOfGameOject = Instantiate(GameOjectYouWantToClone);
public GameObject GameOjectYouWantToClone;
GameObject CloneOfGameOject = Instantiate(GameOjectYouWantToClone);