Exemplo n.º 1
0
        private void OnBallMovedToNextBlock(BallMovedToNextBlockSignal signal)
        {
            if (signal.PreviousBlock == null)
            {
                return;
            }

            Stat.AddScore(PlayerStat.ScoreForStep);
        }
Exemplo n.º 2
0
        private void OnBallMovedToNextBlock(BallMovedToNextBlockSignal signal)
        {
            if (signal.PreviousBlock == null)
            {
                return;
            }

            bool isSameGroup = signal.Block.IsSiblingObject(signal.PreviousBlock);

            if (!isSameGroup)
            {
                OnMovedToBlockInNewGroup(signal.Block, signal.PreviousBlock);
            }
        }