Пример #1
0
    public void OnCardPlay(Rune rune, System.Action action)
    {
        PlayCard pc = rune as PlayCard;

        if (card == null)
        {
            action();
            return;
        }

        if (pc.card_uid == card.GetGuid())
        {
            cardAvatarState = CardAvatarState.inPlay;
        }
        action();
    }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     cardAvatarState = CardAvatarState.inHand;
     RuneManager.Singelton.AddListener(typeof(PlayCard), OnCardPlay);
     textOfCard = new List <Text>(GetComponentsInChildren <Text>());
 }