- Home /
 
               Question by 
               busuzima · Jan 29, 2013 at 03:37 PM · 
                c#javascriptconvert  
              
 
              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!
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Paulo-Henrique025 · Jan 29, 2013 at 04:49 PM
convergenceMethod is a converge enum.
 public converge convergenceMethod = converge.center; //should do the trick
Your answer
 
 
             Follow this Question
Related Questions
C# to UnityScript conversion help. 0 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Can I use Javascript (Unityscript) for Box2D for Unity or Farseer Physics? 1 Answer
c# player move in Unity 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                