Beispiel #1
0
        public void SwapAnimals(Swap swap)
        {
            InputManager.MouseEnabled = false;

            if (!Level.IsPossibleSwap(swap))
            {
                View.InvalidSwapAnimation.Play(View, args => InputManager.MouseEnabled = true, swap);
                return;
            }

            View.HideSuggestion();
            Level.Swap(swap);
            View.ValidSwapAnimation.Play(View, HandleMatches, swap);
        }
Beispiel #2
0
 public void ShowSuggestion(Swap swap) => HighlightedMove = swap;