Example #1
0
    //---------------------------------------------------------------


    //手札のカードがタッチされたら処理-------------------------------------------
    void HandCardTouch( )
    {
        _handCard = _rayShooter.RayCastHandCard(_turnPlayer.gameObject.tag);
        if (_handCard == null)
        {
            return;
        }

        _handCardPos = _handCard.transform.position;
        _handCard.gameObject.GetComponent <BoxCollider2D>( ).enabled = false;
        _handCard.CardExpansion( );
        _mainPhaseStatus = MAIN_PHASE_STATUS.HAND_CARD_OPERATION;
    }
Example #2
0
    void PlayerTurnUpdate( )
    {
        if (_mainSceneOperation.MouseTouch( ))
        {
            CardMain card = _rayShooter.RayCastHandCard(_turnPlayer.gameObject.tag);
            if (card == null)
            {
                return;
            }

            _turnPlayer.HandThrowAway(card);
            if (_turnPlayer.Hand_Num == _turnPlayer.Max_Hnad_Num)
            {
                _didHandThrowAway = true;
                _uiActiveManager.TextActiveChanger(false, UIActiveManager.TEXT.HAND_CARD_LIMIT);
            }
        }
    }