iOS is killing me. everything works dandily until I tossed #pragma strict at the top of the script to get some things working on the iPad. putting #pragma downcast along with it got rid of nearly 50 errors. right now, i'm wrestling with the following error:
Operator '+' cannot be used with a left hand side of type 'int' and a right hand side of type 'Object'.
this is in response to passing a parameter (the number 5) from another script into the following function:
function SomeFunction(selectedRoll){
pos = currentPos + selectedRoll'
}
so, without pragma strict, 5 is passed as an int. but with it, it becomes an object for some reason. help?
It's passed as Object always if you do it like that, it's just that with dynamic typing, it's cast as int at run-time. That's why dynamic typing is slow.
– Eric5h5