Quantcast
Channel: Answers for "Converting JS to C#"
Browsing all 6 articles
Browse latest View live

Answer by Piflik

C# needs variable types. Also some little differences in syntax and needs enclosing stuff: using UnityEngine; using System.Collections; public class Status : MonoBehaviour { //scriptname needs to match...

View Article


Answer by clunk47

You would need to define a class in the script, and the script name needs to be the same as your class. Let's say for example's sake, we'll have a C# script named EXAMPLE. You'll notice where I put...

View Article


Answer by doublethink

Try using this handy Javascript to C# converter [http://files.m2h.nl/js_to_c.php][1] [1]: http://files.m2h.nl/js_to_c.php

View Article

Answer by Piflik

C# needs variable types. Also some little differences in syntax and needs enclosing stuff: using UnityEngine; using System.Collections; public class Status : MonoBehaviour { //scriptname needs to match...

View Article

Answer by clunk47

You would need to define a class in the script, and the script name needs to be the same as your class. Let's say for example's sake, we'll have a C# script named EXAMPLE. You'll notice where I put...

View Article


Answer by doublethink

Try using this handy Javascript to C# converter [http://files.m2h.nl/js_to_c.php][1] [1]: http://files.m2h.nl/js_to_c.php

View Article
Browsing all 6 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>