using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Linq; using Photon; using System; public class ScapegoatClass : ICardEffect, IScapegoatEffect { public void SetUpScapegoatClass(Func PermanentCondition) { this.PermanentCondition = PermanentCondition; } Func PermanentCondition { get; set; } public bool HasScapegoat(Permanent permanent) { if (PermanentCondition != null) { if (permanent != null) { if (permanent.TopCard != null) { if (PermanentCondition(permanent)) { return true; } } } } return false; } }