// active player gets on start of his turn sources from mining buildings public void getSources(Player player) { player.AddSources(new SourceAll(0), TransactionState.TransactionStart); player.ClearCollectSources(); for (int i = 0; i < hexaMapModel.Length; i++) for (int j = 0; j < hexaMapModel[i].Length; j++) if (hexaMapModel[i][j] != null) { hexaMapModel[i][j].CollectSources(player); } player.AddSources(new SourceAll(0), TransactionState.TransactionEnd); }