예제 #1
0
 void DragState(CardDraggingEvent e)
 {
     _isHover = false;
     if (e.IsDragging && e.DraggingCard != CardType.Null)
     {
         if (_currentCard != e.DraggingCard)
         {
             ClickedOnCard(e.DraggingCard);
         }
         if (!_audioSource.isPlaying)
         {
             _audioSource.clip = _audioClips [2];
             _audioSource.Play();
         }
     }
     else
     {
         _cardRenderer.enabled = false;
         _removeButton.SetActive(false);
         if (!_audioSource.isPlaying)
         {
             _audioSource.clip = _audioClips [0];
             _audioSource.Play();
         }
     }
 }
예제 #2
0
 void CardDraggingHandler(CardDraggingEvent e)
 {
     _isDragging = e.IsDragging;
 }