Do script vars keep thier values between levels?

Basically, if you assign i to 0, then increment it in the script, will i be reassigned to 0 or still be 1?

EDIT: Is there a way to apply DontDestroyOnLoad() to a script?

I assume you are talking about scripts on an object that is not destroyed between levels (DontDestroyOnLoad). In that case, they will keep their values.

Thanks!

Also, any static var or non Component type will not reset between scenes/levels