I was developing a game in Unity Basic but recently purchased Unity iPhone Basic to release the game on the iPad. Everything seems to look ok, except I am having a few weird script errors.
One: Operator '-' cannot be used with a left hand side of type 'Object' and a right hand side of type 'Object'.
What is wrong with the code? It works perfectly in both Windows and Mac Unity Basic... Are there any huge differences that I should know of between Unity iPhone and Desktop when scripting?
asked Jul 28 '10 at 04:58 AM
answered Jul 28 '10 at 05:13 AM
there is not much difference, specially if you enable .net 2.0 features then most things will be the same but you should write a really fast code to be able to run it on an iphone. however ipad is much faster. take a look at this
the only feature that is not supported is dynamic typing so your array should be casted to the original type and then anything will be correct and you are good to go.
answered Jul 28 '10 at 05:14 AM