Question by
KodingKaralis · Feb 12, 2016 at 12:57 AM ·
multiplefindrangenumber
Find Number Multiple within Range
Hello. How would find a multiple of 50 within a constantly changing specific number range? Example the minimum of the range may be the players position -5, and the max might be the players position + 5.
ive tried something like this.
if (2 % 5 < max && 2 % 5 > min) { Instantiate(Cube,new Vector3(gameObject.transform.position.x,0,gameObject.transform.position.z + 2), new Quaternion(0,0,0,0)); }
but it wont work :/ PLZ HELP :)
Comment