コード例 #1
0
    public void CreateItem(string buttonName, CCharacterWorkbenchAbility workbenchAbility, CWorkbench workbench)
    {
        WorkbenchMenuItem TempWorkbenchMenuItem = Instantiate(workBenchMenuItemPrefab, itemParent);

        TempWorkbenchMenuItem.Initialization(buttonName, workbenchAbility, workbench);
    }
コード例 #2
0
 public void Initialization(string buttonText, CCharacterWorkbenchAbility characterWorkbenchAbility, CWorkbench workbench)
 {
     this.buttonText.text           = buttonText;
     this.characterWorkbenchAbility = characterWorkbenchAbility;
 }