public void initialize(GameObject campContractPrefab, CampContract campContract) { this.campContract = campContract; this.campContractInstance = campContractPrefab; this.background = campContractInstance.GetComponent <Image>(); TextMeshProUGUI textObject = campContractInstance.GetComponentInChildren <TextMeshProUGUI>(); textObject.text = campContract.getDescription(); }