Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. if (Random.Range (1, 8) < 6) {
  2. // Chance: 62.5%
  3. if (Random.Range(1, 3) == 1) {
  4. // Chance: 33.3%
  5. // Multiplicative chance: 20.8125%
  6. // Odkrit levo
  7. signal.sprite = odkritLevo;
  8. vrstaSignala = 1;
  9. }
  10. else {
  11. // Chance: 66.6%
  12. // Multiplicative chance: 41.625%
  13. // Odkrit desno
  14. signal.sprite = odkritDesno;
  15. vrstaSignala = 2;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement