示例#1
0
 public void Bind(
     CraftUI craftUI,
     CraftItemNodeUI.StuffItemInfoPack pack,
     RecipeDataInfo[] data)
 {
     this._craftUI = craftUI;
     this._pack    = pack;
     this.data     = data;
     this.Refresh();
 }
        public CraftItemNodeUI AddItemNode(
            int id,
            CraftItemNodeUI.StuffItemInfoPack pack,
            RecipeDataInfo[] data)
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            CraftItemListUI.\u003CAddItemNode\u003Ec__AnonStorey0 nodeCAnonStorey0 = new CraftItemListUI.\u003CAddItemNode\u003Ec__AnonStorey0();
            // ISSUE: reference to a compiler-generated field
            nodeCAnonStorey0.id = id;
            // ISSUE: reference to a compiler-generated field
            nodeCAnonStorey0.\u0024this = this;
            CraftItemNodeUI component = (CraftItemNodeUI)((GameObject)Object.Instantiate <GameObject>((M0)this.OptionNode, this.itemParent)).GetComponent <CraftItemNodeUI>();

            component.Bind(this._craftUI, pack, data);
            // ISSUE: method pointer
            ((UnityEvent <BaseEventData>)component.onEnter).AddListener(new UnityAction <BaseEventData>((object)nodeCAnonStorey0, __methodptr(\u003C\u003Em__0)));
            // ISSUE: method pointer
            ((UnityEvent)component.OnClick).AddListener(new UnityAction((object)nodeCAnonStorey0, __methodptr(\u003C\u003Em__1)));
            // ISSUE: reference to a compiler-generated field
            this._optionTable.Add(nodeCAnonStorey0.id, component);
            return(component);
        }