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
↧