コード例 #1
0
    internal void SelectGamePiece()
    {
        if (TurnStateHandler.IsControllersTurn(this))
        {
            if (TurnStateHandler.CurrentTurnState.CurrentTurnStep == TurnStep.Move)
            {
                m_Handler.SetFocusPiece(this);
            }

            else if (GamePieceHandler.CurrentFocusPiece == this)
            {
                if (TurnStateHandler.CurrentTurnState.CurrentTurnStep == TurnStep.Attack)
                {
                    BeginAttack();
                }

                else
                if (TurnStateHandler.CurrentTurnState.CurrentTurnStep == TurnStep.Direction)
                {
                    ActivateRotationCanvas();
                }
            }
        }
    }