Hello,
I have a simple question (i think) how do you perform a multiply. like 10x60 = 600 in a script javascript.
Hello,
I have a simple question (i think) how do you perform a multiply. like 10x60 = 600 in a script javascript.
As GameVortex suggested w3schools can give you a basic introduction to javascript. As for your question:
//Create a variable to store value
var x : int = 1;
//One way to multiply
x = 10 * 60;
//Another way
x *= 5;
//(x = x * 5)
Edit: regarding your comment, Unityscript is pretty much Javascript with classes, UnityScript vs JavaScript