using System.Collections; using System.Collections.Generic; using UnityEngine; using System; public class AddDigiXrosConditionClass : ICardEffect, IAddDigiXrosConditionEffect { Func _getDigiXrosCondition { get; set; } public void SetUpAddDigiXrosConditionClass(Func getDigiXrosCondition) { _getDigiXrosCondition = getDigiXrosCondition; } public DigiXrosCondition GetDigiXrosCondition(CardSource cardSource) { if (cardSource != null) { if (_getDigiXrosCondition != null) { if (_getDigiXrosCondition(cardSource) != null) { return _getDigiXrosCondition(cardSource); } } } return null; } }