public ResourceNodeLocationCanon(ResourceSignals resourceSignals, HexCellSignals cellSignals) { ResourceSignals = resourceSignals; resourceSignals.NodeBeingDestroyed.Subscribe(OnNodeBeingDestroyed); cellSignals.MapBeingClearedSignal.Subscribe(unit => Clear(false)); }
public ResourceNodeFactory( DiContainer container, IPossessionRelationship <IHexCell, IResourceNode> resourceNodeLocationCanon, IResourceRestrictionLogic restrictionCanon, ResourceSignals signals, [InjectOptional(Id = "Resource Node Container")] Transform nodeContainer ) { Container = container; ResourceNodeLocationCanon = resourceNodeLocationCanon; RestrictionCanon = restrictionCanon; NodeContainer = nodeContainer; signals.NodeBeingDestroyed.Subscribe(OnNodeBeingDestroyed); }
public void InjectDependencies(ResourceSignals signals) { Signals = signals; }