Ejemplo n.º 1
0
        public bool HasSharedProperty(Card otherCard)
        {
            MetaData otherMeta = otherCard.GetComponent <MetaData>();

            if (otherMeta.strategy != StrategyType.None && strategy == otherMeta.strategy)
            {
                return(true);
            }
            if (otherMeta.attribute != AttributeType.None && attribute == otherMeta.attribute)
            {
                return(true);
            }

            return(false);
        }