It shall be the duty of every attorney to act as the guardian of a minor or incompetent defendant in any suit pending against him when appointed for that purpose by an order of the court. He shall prepare himself to make the proper defense, to guard the rights of such defendant, and shall be entitled to such compensation as the court shall deem reasonable.
Neb. Rev. Stat. §§ 7-113