Good in Unity Not in iPhone Unity

Just running a small tutorial. The script works in unity but not iphone unity why?

ERROR: operator ‘-’ cannot be used with a left hand side of type ‘Object’ and right hand side of type ‘int’.

var bankAccount = 1000 ;


print (spendOnHundredBucks(bankAccount)) ;

function spendOnHundredBucks ( number)
{
	number = number - 100 ; 
	return number ;
	
	
	
	}

Unity iPhone does not have dynamic typing, as such you must declare types or ensure that the type is clearly extractable for the compiler.

I personally would recommend to declare the types propertly then you won’t have problems

Thanks, that fix it!