Hi I am trying to make a mobile game on android. I am using the standart assets of Unity. Especially “Mobile Single Stick Controller” İf I create a script with C#, I can use it but it is not working on my first script with javascript. My real script is very big and I don’t know C# very good so I don’t convert it to C#. How can I solve this problem?
You could translate c# to JavaScript via google then make a java script from that, or get a javascript version of it, or I could tell you some translation if your converting to javascript, delete “using
UnityEngine;”
“using System.Collections;”
“public class NameOfScript"this will be the name of the c# script” : MonoBehaviour" "
public = static void = function, string Playername = var PlayerName : String, int PlayerHealth = var PlayerHealth : int, Vector3 PlayerLocation = var PlayerLocation : Vector3, those are just some translations I could be wrong Could you explain the problem a little bit more
Thanks I solve the problem