// Token: 0x06002A1A RID: 10778 RVA: 0x0009C170 File Offset: 0x0009A370
    public void ItemClicked(GameObject go)
    {
        if (global::RPOS.ObservedPlayer.GetComponent <global::CraftingInventory>().isCrafting)
        {
            return;
        }
        global::RPOSCraftItemEntry component = go.GetComponent <global::RPOSCraftItemEntry>();

        if (component == null)
        {
            return;
        }
        global::BlueprintDataBlock blueprint = component.blueprint;

        if (!blueprint)
        {
            Debug.Log("no bp by that name");
            return;
        }
        if (blueprint != this.selectedItem)
        {
            this.SetSelectedItem(component.blueprint);
            this.UpdateIngredients();
        }
    }
Esempio n. 2
0
 // Token: 0x06002AF6 RID: 10998 RVA: 0x0009F798 File Offset: 0x0009D998
 public global::RPOSCraftItemEntry GetEntryByBP(global::BlueprintDataBlock bp)
 {
     foreach (object obj in base.transform)
     {
         global::RPOSCraftItemEntry component = (obj as Transform).GetComponent <global::RPOSCraftItemEntry>();
         if (component && component.blueprint == bp)
         {
             return(component);
         }
     }
     return(null);
 }