Quantcast
Channel: Latest Questions by Abelabumba
Viewing all articles
Browse latest Browse all 6

Random.Range(0f, 10f) neither 5.5f, why/how?

$
0
0
while (winner == "no") { bool fighterPassed = false; bool plotPassed = false; if (Random.Range(0f, 10f) >= 5.5f) { Debug.Log("higher!"); winner = "CPU"; return winner; } else if (Random.Range(0f, 10f)

Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images