Converted Processing to C# for Unity 3D