I have a script written in JavaScript and i want to convert it to c# but i don’t have the skills to do it i have tried and online tool but it didn’t work. I paste the online tool URL and my script. http://www.m2h.nl/files/js_to_c.php
Thank you in advance.
My script that i want to convert to c#.
import System.IO;
private var latestVersionString = "randomText";
var thisVersionFloat : float = 1.0;
var dropBoxLatestVersionTXT = "https://www.dropbox.com/s/???????????????/version.txt?dl=1";
function Start () {
var www : WWW = new WWW(dropBoxLatestVersionTXT);
yield www;
latestVersionString = www.text;
var latestVersionFloat : float = 3.14159265358979f;
latestVersionFloat = float.Parse(latestVersionString);
if(latestVersionFloat==thisVersionFloat) Debug.Log("You have the latest version of the game");
if(latestVersionFloat>thisVersionFloat) Debug.Log("You have outdated version of the game");
}
I have tried this tool myself but it didin’t work thats why i asked help from the forums.
But if you can fix this script and make it work you will help me a lot