private void SetCanAcceptResources(bool c) { if (stockpile.Data.canAcceptResources != c) { stockpile.Send(new StockpileDepository.Update().SetCanAcceptResources(c)); } }
public void SetCanAcceptResources(bool canAcceptResources) { if (stockpile == null) { Debug.LogError("stockpile is null in BarracksStateMachine."); return; } if (stockpile.Data.canAcceptResources != canAcceptResources) { stockpile.Send(new StockpileDepository.Update().SetCanAcceptResources(canAcceptResources)); } }