Esempio n. 1
0
    private void OnMovingCoinDestinationReached(object sender, DestinationReachedEventArgs args)
    {
        ChangeSlotColor(args.targetSlot, GameManager.currentPlayersTurn);

        if (IsFourInARow(args.targetSlot))
        {
            manager.GameFinished();
            return;
        }

        GameManager.UpdatePlayersTurn();
        cursorSlot.SetSlotColor(GameManager.currentPlayersTurn);
        EnableCursorSlot();
    }
 private void HandleDestinationReached(object sender, DestinationReachedEventArgs e)
 {
     _characterMovementModel.IsInDestination = true;
 }