| 1234567891011121314151617181920212223242526272829303132333435 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using System.Linq;
- using Photon;
- using System;
- public class RebootClass : ICardEffect, IRebootEffect
- {
- public void SetUpRebootClass(Func<Permanent, bool> PermanentCondition)
- {
- this.PermanentCondition = PermanentCondition;
- }
- Func<Permanent, bool> PermanentCondition { get; set; }
- public bool HasReboot(Permanent permanent)
- {
- if (PermanentCondition != null)
- {
- if (permanent != null)
- {
- if (permanent.TopCard != null)
- {
- if (PermanentCondition(permanent))
- {
- return true;
- }
- }
- }
- }
- return false;
- }
- }
|