// 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); }
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(); }
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.. }); }