Can someone say what is wrong with my code. I have custom timer implemented like this:
float timeRemain = 10f;
void Update(){
timeRemain -= Time.deltaTime;
if(timeRemain <= 0){
///...code here.
}
}
On PC it runs like expected but on Android device timeRemain
variable becomes 0 in less then 10 secs. Who can suggest me what happens when i run it on Android device?