a little experiment in Unity3D with functional programming.