hi , i never learned/used java , i have a script ( i found it on internet ) is in the java script form ! but i need that in c# to add some more scripting to it ! the java script is working perfectly fine ! can anyone please tell me its C# equivalent ??
here is the script :
///////////////////////////// #pragma strict
var distToGround: float;
var jumpspeed: float;
function Start(){
// get the distance to ground
distToGround = GetComponent.().bounds.extents.y;
}
Here is a good place to go to so you don’t have to constantly ask how to convert most unity 5 scripts will be easy to convert with this anything 4 and lower and you’ll have problems