Beispiel #1
0
        private void SlotStopped()
        {
            SpiningSlots--;

            if (SpiningSlots == 0)
            {
                RollEnded.Invoke(LastWin);
            }
        }
Beispiel #2
0
        private void OnLoopCompleted()
        {
            foreach (Die d in Dice)
            {
                d.UpdateDiePosition();
                d.DrawDie();
            }

            HandleCollisions();

            if (!AllDiceStopped)
            {
                BeginLoop();
            }
            else
            {
                RollEnded?.Invoke();
            }
        }