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