protected override void InternalInitializeLayer(World world, ALevelNode levelNode) { this.NotifBehaviorsList = new List <IBoardNotifBehavior>(); this.CurrentNotifBehavior = null; this.cardAwakened = null; }
public void NotifyCardAwakened(CardEntity cardToNotify, int valueBeforeAwakened) { CardEntityAwakenedDecorator cardEntity = new CardEntityAwakenedDecorator(this, cardToNotify, valueBeforeAwakened); this.cardAwakened = cardEntity; this.AddEntityToLayer(cardEntity); this.CardAwakened?.Invoke(cardEntity); }
public void RemoveCardAwakened() { if (this.cardAwakened != null) { this.CardAwakened?.Invoke(null); this.RemoveEntityFromLayer(this.cardAwakened); this.cardAwakened = null; } }