Quantcast
Channel: Answers by "Kleptomaniac"
Viewing all articles
Browse latest Browse all 90

Answer by Kleptomaniac

$
0
0
I believe you could try using a switch-case method for this (never worked with switch-cases before though so we shall see how I go): void Update () { switch (yourRandomVar) { case 0: yourRandomVar = Random.Range(0, 2, 3); case 2: yourRandomVar = Random.Range(0, 1, 2); default: yourRandomVar = Random.Range(0, 1, 2, 3); } } As I said though, never used switch-case method before, so if this is incorrect ... sorry! :D Hope that helps, Klep

Viewing all articles
Browse latest Browse all 90

Trending Articles



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