コード例 #1
0
//		ReactiveProperty<DBCraftingItem> currentMaking = new ReactiveProperty<DBCraftingItem>();
        public void Init(DBCraftingTable _table)
        {
            runtimeTable = _table;
            staticTable  = staticData.GetByID <GDCraftingTable>(runtimeTable.craftingTableID);
            state        = new CLStateUpdator <State>();
            state.Init(OnCheckState, OnSetState, OnUpdateState);
        }
コード例 #2
0
    public override void OnInitialize(params object[] args)
    {
        base.OnInitialize(args);
        runtimeTable = args[0] as DBCraftingTable;
        staticTable  = staticData.GetByID <GDCraftingTable>(runtimeTable.craftingTableID);

        view = viewManager.CreateView("Popup/Craft", "Popup");
        BindInstance();
        BindLogic();
    }
コード例 #3
0
        public void Init(DBCraftingTable _table, int _idx)
        {
            runtimeTable = _table;
            idx          = _idx;
            staticTable  = staticData.GetByID <GDCraftingTable>(runtimeTable.craftingTableID);
            state        = new CLStateUpdator <State>();
            state.Init(OnCheckState, OnSetState, OnUpdateState);

            gameObject.CLOnClickAsObservable("State/Expand").Subscribe(_ => {
                //Popup..
            });
        }