public void switchSelect() { if (dieState == edieState.selected) { previousState = edieState.selected; dieState = edieState.inHand; } else if (dieState == edieState.inHand) { previousState = edieState.inHand; dieState = edieState.selected; } }
public void rollDie() { if (dieState == edieState.selected) { dieState = edieState.locked; } if ((dieState != edieState.locked) && (dieState != edieState.frozen)) { previousResult = currentResult; currentResult = (int)Random.Range(1, 7); } }