예제 #1
0
 void OnFocusCard(PanelCardUnoDetailController _cardUnoDetail)
 {
     if (currentCardUno != null)
     {
         currentCardUno.MoveLocal(Vector2.zero, 0.2f, LeanTweenType.easeOutBack);
     }
     if (currentCardUno != _cardUnoDetail)
     {
         _cardUnoDetail.MoveLocal(Vector2.up * 50f, 0.2f, LeanTweenType.easeOutBack);
         currentCardUno = _cardUnoDetail;
     }
     else
     {
         currentCardUno = null;
     }
 }
예제 #2
0
    public void OnFocusCard(PanelCardUnoDetailController _cardUnoDetail)
    {
        if (!_cardUnoDetail.canPut)
        {
            return;
        }
        if (Uno_GamePlay_Manager.instance.CanPlayMusicAndSfx())
        {
            MyAudioManager.instance.PlaySfx(GameInformation.instance.globalAudioInfo.sfx_Click);
        }
        if (currentCardUnoFocusing != null)
        {
            currentCardUnoFocusing.HideHighlight();
            currentCardUnoFocusing.MoveLocal(Vector2.zero, 0.2f, LeanTweenType.easeOutBack);
        }
        if (currentCardUnoFocusing != _cardUnoDetail)
        {
            if (currentCardUnoFocusing != null)
            {
                currentCardUnoFocusing.HideHighlight();
            }
            _cardUnoDetail.MoveLocal(Vector2.up * 30f, 0.2f, LeanTweenType.easeOutBack);
            _cardUnoDetail.ShowHighlight();
            currentCardUnoFocusing = _cardUnoDetail;
        }
        else
        {
            currentCardUnoFocusing = null;
        }

        if (currentCardUnoFocusing != null)
        {
            gamePlayManager.UIManager.myBarController.SetBtnPut(gamePlayManager.UIManager.myBarController.alphaMyBtnWhenActive, true, false);
        }
        else
        {
            gamePlayManager.UIManager.myBarController.SetBtnPut(gamePlayManager.UIManager.myBarController.alphaMyBtnWhenNotActive, false, false);
        }
    }