November 2018
Beginner
246 pages
5h 23m
English
If the first and second reels return the same symbol, then we have to provide the near miss effect to the players by returning the random value to the third reel close to the second one. We can do this by checking the third random spin result first. If the random value is the same as the first and second results, then this is a jackpot, and we shouldn't alter the result.
But if it's not, then we should modify the result so that it is close enough to the other two. Check the comments in the following code:
else if (!thirdReelSpinned) { thirdReel.text = randomSpinResult.ToString(); if (elapsedTime >= spinDuration) { if ((firstReelResult == secondReelResult) && randomSpinResult != firstReelResult) { //the first two reels have resulted ...Read now
Unlock full access