Esempio n. 1
0
    private void OnMouseDown()
    {
        var currentPlayer = _playerManager.GetCurrentPlayer();

        if (_gamePieceManager.CheckIfPieceIsPlayersPiece(gameObject, currentPlayer))
        {
            if (!_isInPlay && !_gameManager.IsGameOver())
            {
                Debug.Log("Is In Play: " + _isInPlay);
                Debug.Log("Size: " + _size);
                Debug.Log("Player: " + GetPlayer());

                _gamePieceManager.OutlinePiece(gameObject);
            }
        }
    }