private void updateTargetDisplay(BuildingGS gameState, int indexActor) { Debug.Log("actor to update target display: " + indexActor); ResourceDisplayController rdc = meTargetDisplay; if (indexActor == indexAi) { rdc = aiTargetDisplay; } foreach (ResourceType rt in gameState.getAllResourceTypes()) { rdc.updateCountAndRPT(rt, gameState.getStockpile(rt), gameState.getChangePerTick(rt)); } }