removePersistant()

Found in:

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();
          }
        }
      }
    }


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *