Help me please to convert from UnityScript to C#

Hello, everybody!

Just one thing this converter

couldn’t convert:

public var convergenceMethod = converge.center;

there is also an enum: enum converge {none,percent,center,click,mouse,object};

and a switch loop going through this enum:

switch (convergenceMethod) {
			case converge.percent:
				// calculate negative parallax from percentage
				cameraParallaxNegative = cameraParallaxTotal*percentageNegativeParallax/100; etc...

I do not understand of which data type is this “convergenceMethod”. I will appreciate any help and thank you in advance!

convergenceMethod is a converge enum.

public converge convergenceMethod = converge.center; //should do the trick