public void HandleProvideSuccess(int productId, int amount, ProductTrader consumer) { if (OnProvideSuccess != null) { OnProvideSuccess(productId, amount, consumer); } }
public void HandleConsumeSuccess(int productId, int amount, ProductTrader provider) { if (OnConsumeSucess != null) { OnConsumeSucess(productId, amount, provider); } }
public void Initialize(TraderRequestsSO requests, ProductTrader trader, WorldClock worldClock) { _trader = trader; InitializeRequestsTable(); BindWorldClock(worldClock); BindScriptable(requests); }