public void Initialization(string buttonText, CCharacterCollectedAbility characterCollectedAbility, CCollectedItem collectedItem) { this.buttonText.text = buttonText; this.characterCollectedAbility = characterCollectedAbility; this.collectedItem = collectedItem; }
public void CreateItem(string buttonName, CCharacterCollectedAbility characterCollectedAbility, CCollectedItem collectedItem) { CCollectedItemMenuItem collectedItemMenuItem = Instantiate(collectedItemMenuItemPrefab, itemParent); collectedItemMenuItem.Initialization(buttonName, characterCollectedAbility, collectedItem); }