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(); }
// Use this for initialization void Start() { cardAvatarState = CardAvatarState.inHand; RuneManager.Singelton.AddListener(typeof(PlayCard), OnCardPlay); textOfCard = new List <Text>(GetComponentsInChildren <Text>()); }