void Update() { if (anim) { tick += Time.deltaTime; if (tick > tNext) { if (!(count > dTotal)) { if (count > dCons) { tNext = tBase * Mathf.Pow(mod, Mathf.Log(count - dCons)); hud.changeLightHUD(0); } int i = genNum(); if (count == dTotal) { while (i == currDiceNum || i == diceNum) { i = genNum(); } changeFace(i); } else { while (i == currDiceNum) { i = genNum(); } changeFace(i); } hud.changeLightHUD(count > dCons + (dExp / 2) ? 0 : i); resetTick(); count++; } else { changeFace(diceNum); hud.changeLightHUD(diceNum); tNext = tBase; resetTick(); count = 0; anim = false; } } } }
public void changeNumTravels(int number) { numTravels = number; travelLightsDisplay.changeLightHUD(number); }