Exemplo n.º 1
0
 private void OnMatchFound(BallGridMatchArgs e)
 {
     TotalMatches++;
     if (e.BallPath.Count > LargestMatch)
     {
         LargestMatch = e.BallPath.Count;
     }
 }
Exemplo n.º 2
0
        private void OnMatchFound(BallGridMatchArgs e)
        {
            var balls = e.BallPath.OrderBy(b => b.gameObject.transform.position.y).ToList();

            float delay = 0.1f;

            foreach (var ball in balls)
            {
                DestroyOneBall(ball, delay);

                delay += SequentialDelay;
            }
        }
Exemplo n.º 3
0
 private void OnMatchFound(BallGridMatchArgs e)
 {
     _scoreKeeper.ScoreMatch(e.BallPath);
 }