public void removePersistant(){
if(_live){
Transform playerInGame = player.transform;
if(thisItem.GetPrefab() != null){
if(player.transform.Find("persistantLocation").gameObject.transform.childCount > 0){
Destroy(player.transform.Find("persistantLocation").gameObject.transform.GetChild(0).gameObject);
player.endPersistant();
}
}
}
}

Leave a Reply