Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

If statement is always true

$
0
0
#pragma strict var MaxFallDistance = -110; function Update () { if(transform.position.y <= MaxFallDistance); { Debug.Log ("We good fam"); } } no matter where i am the if statement is always true even at 0, 0, 0. please help!!!

Viewing all articles
Browse latest Browse all 1875

Trending Articles



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