public void Awake() { StockBatiment = new StockBatiment(); MemoryComponement = new BatimentProduction_MemoryComponement(); DecisionComponement = new BatimentProduction_DecisionComponement(this); TryGetComponent <BatimentVente_Controller>(out Shop); TryGetComponent <BatimentProduction_InitComponent>(out InitComponent); WorkComponent = new BatimentProduction_WorkComponent(); WorkComponent.Controller = this; }
public void Awake() { Stock = new StockBatiment(); WorkComponent = new BatimentVente_WorkerComponent(this); TryGetComponent(out DecisionComponent); TryGetComponent(out InitComponent); MemoryComponent = new BatimentVente_MemoryComponent(this); ShopComponent = new BatimentVente_ShopComponent(this); if (InitComponent != null) { InitBat(); ActiveBatiment(); } }