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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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