Example #1
0
    void OnEnable()
    {
        TurnSystem.EndDefenseAction += MarkOff;
        TurnSystem.RevealAction     += Reveal;

        effectsInterface = GetComponent <IEffects>();
        heavyInterface   = GetComponent <IHeavy>();
    }
Example #2
0
 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);
 }
Example #3
0
 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);
 }
Example #4
0
 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);
 }