Hello I’m trying to build my game to my iPhone but it won’t let me build cause I didn’t use pragma strict scripting. I’m having error with this line: var guiTime = Time.time - startTime; The error being: Operator ‘-’ cannot be used with a left hand side of type ‘float’ and a right hand side of type ‘Object’. How do I get it to work? I have read the unity documentation on Pragma Strict and was wondering whether there are any more examples on Pragma Strict. Thank you so much.

It seems that you’re not declaring the startTime type. Declare it as a float:

var startTime: float;

And declare guiTime type as float too:

var guiTime: float = Time.time - startTime;