Hi
I need to new gameObject from player variable. My destroy trigger and destroy my player and missing player. Don’t instantiate player
var player:GameObject;
var copyPlayer:GameObject=new GameObject(player); //my problem
var playerPivot:GameObject;
function Update () {
if(Input.GetKeyDown(KeyCode.Mouse1)){
Instantiate(copyPlayer,playerPivot.transform.position,Quaternion.identity);
}
}