Beispiel #1
0
    void PickUpKind()
    {
        Debug.Log("Select");
        isSelected = true;
        PieceController controller = PieceController.Instance;

        controller.CloseGuideArea();
        Piece piece = controller.FindPassivePiece(kind);

        if (piece == null)
        {
            isSelected = false;
            return;
        }
        target = piece;
        piece.PickUp();
    }