convert c# to Javascript(bump all of you-Closed)
Posted: Sun Nov 09, 2014 6:06 pm
I have a few lines of code here that I need help with converting from c# to JavaScript
any help would be great
tokenCount is a variable in the gamemanager script which is JS but this is c# code I need to make this JS
this line here is c# as well in the GameManager c# file but when I try to make it JS it don't work
as well as this line is from gamemanager as well which I need to make it JS
help would be great with this
any help would be great
Code: Select all
GameObject.Find("GameManager").GetComponent<GameManager>().tokenCount++;this line here is c# as well in the GameManager c# file but when I try to make it JS it don't work
Code: Select all
int gameTime = (int)startTime;Code: Select all
Rect winScreenRect = new Rect(Screen.width/2 - (Screen.width *.5f/2),Screen.height/2 - (Screen.height *.5f/2),Screen.width *.5f,Screen.height *.5f);help would be great with this