Create a function in unity

Job ID: 32101445

Budget: €8 – €30 EUR

I need a function written in C# for unity.
The function receive a gameobject with three children and three linerenderer (image 1) and align the three children object on the line renderer (image2)
Related categories: C# Programming Unity 3D