Cross platform input problem
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?
Answer by lienadnellum · May 04, 2016 at 04:22 AM
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
Your answer
Follow this Question
Related Questions
Do you need to have specific script types for different mobile platforms? 1 Answer
How to enable a script in Play-Mode? 1 Answer
Convert a java script in a c#??? thank you 1 Answer
unity nav mesh problems 0 Answers
First Person Controller error, "IndexOutOfRangeException:Array index is out of range." 1 Answer