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