Esempio n. 1
0
    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();
    }