public void RpcTransferResources(int[] res) { if (resPool != null) { resPool.addBagAsInt(res); if (localPlayer && localPlayer.teamIndex == teamIndex) { for (int i = 0; i < 6; i++) { if (res[i] > 0) { uiControl.pulseResource((ResourceName)(i + 1)); } } } } }
public void RpcTransferResources(int[] res) { resources.addBagAsInt(res); }