10 SCR_ResourceComponent containerComponent = containerTo.GetComponent();
11 float usedResources = Math.Min(containerTo.ComputeResourceDifference(), resourceValue);
12 resourceValue -= usedResources;
17 encapsulator.RequestGeneration(usedResources);
19 containerTo.IncreaseResourceValue(usedResources);
21 containerComponent.Replicate();