void OnEnable() { TurnSystem.EndDefenseAction += MarkOff; TurnSystem.RevealAction += Reveal; effectsInterface = GetComponent <IEffects>(); heavyInterface = GetComponent <IHeavy>(); }
public Card(String cardId, String color, String localName, String realName) { this.CardId = cardId; this.LocalName = localName; this.RealName = realName; this.Color = (Color)Enum.Parse(Color.GetType(), color.ToUpper()); //this.effect = cardEffects.get(realName); this.Effect = cardsEffects.GetValueOrDefault(realName); }
public Animation(IEffects effect) { //Class4.OCal7gSz1iJFF(); this.timer = new System.Windows.Forms.Timer(); this.bool_0 = true; this.ieffects = effect; this.timer.Interval = 12; this.timer.Tick += new EventHandler(this.timer_0_Tick); }
public void Dispose() { if (this.timer != null) { this.timer.Dispose(); this.timer = null; } if (this.ieffects != null) { this.ieffects.Dispose(); this.ieffects = null; } GC.SuppressFinalize(this); }