コード例 #1
0
    public void init(Recipe recipe, WorkbenchUI ui)
    {
        this.recipe = recipe;
        this.ui     = ui;

        image.sprite = recipe.result.itemGroup.sprite;
    }
コード例 #2
0
ファイル: Workbench.cs プロジェクト: jackdelahunt/DigFun
 public void Start()
 {
     // getting the refrence of the workbench ui from the popup ui, and storing both
     popupUI = GameObject.FindGameObjectWithTag("PopupUI").GetComponent <PopupUI>();
     workbenchUIGameObject = popupUI.workbenchUI;
     ui = workbenchUIGameObject.GetComponent <WorkbenchUI>();
 }
コード例 #3
0
ファイル: CraftButton.cs プロジェクト: jackdelahunt/DigFun
 public void Awake()
 {
     ui = transform.parent.GetComponent <WorkbenchUI>();
 }