10 SCR_ResourceComponent containerComponent = containerTo.GetComponent();
11 float usedResources = Math.Min(containerTo.ComputeResourceDifference(), resourceValue);
12 resourceValue -= usedResources;
14 containerTo.IncreaseResourceValue(usedResources);
15 containerComponent.Replicate();