Quantcast
Channel: Questions in topic: "endless"
Viewing all articles
Browse latest Browse all 123

Endless counting in if statment.

$
0
0
So I have this script public var ClickTimer : float = 5f; function Update () { var Timer = 0.0f; var time = Time.time; if (something){} else if (Timer <= ClickTimer) { Timer += time; print(Timer + time); DoubleTap = true;} } else{ DoubleTap = false; } } but it never ends, once Timer = 5; it just keeps going which should make the if statement not true.

Viewing all articles
Browse latest Browse all 123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>