public void CreateItem(string buttonName, CCharacterWorkbenchAbility workbenchAbility, CWorkbench workbench) { WorkbenchMenuItem TempWorkbenchMenuItem = Instantiate(workBenchMenuItemPrefab, itemParent); TempWorkbenchMenuItem.Initialization(buttonName, workbenchAbility, workbench); }
public void Initialization(string buttonText, CCharacterWorkbenchAbility characterWorkbenchAbility, CWorkbench workbench) { this.buttonText.text = buttonText; this.characterWorkbenchAbility = characterWorkbenchAbility; }