public void GainResources(int thiefTileId) { // Let the player gain resources (int wood, int stone, int clay, int wheat, int wool) = mapController.CalculateGainableResources(player, thiefTileId); AddResources(wood, stone, clay, wheat, wool); if (photonView.IsMine) { RaiseEvent(ActionType.GainedResources, new ResourceStorage { wood = wood, stone = stone, clay = clay, wheat = wheat, wool = wool, }); } }