The amount paid by the board, as fixed by the appraisers, shall, in the event the building so damaged or destroyed is a county building or a public school building, be paid over to the county treasurer of the county in which the building is located, to be by him paid out as required by law, upon the proper warrant or order of the proper official or trustees, for the repair, restoration or rebuilding of the property damaged or destroyed; and, in the event the property so damaged or destroyed is state property, then the amount shall be paid over to the officer or official having the property in his care and custody, to be expended by him for the repair, restoration or rebuilding of the property damaged or destroyed.