예제 #1
0
        protected override void InternalInitializeLayer(World world, ALevelNode levelNode)
        {
            this.NotifBehaviorsList = new List <IBoardNotifBehavior>();

            this.CurrentNotifBehavior = null;

            this.cardAwakened = null;
        }
예제 #2
0
        public void NotifyCardAwakened(CardEntity cardToNotify, int valueBeforeAwakened)
        {
            CardEntityAwakenedDecorator cardEntity = new CardEntityAwakenedDecorator(this, cardToNotify, valueBeforeAwakened);

            this.cardAwakened = cardEntity;

            this.AddEntityToLayer(cardEntity);

            this.CardAwakened?.Invoke(cardEntity);
        }
예제 #3
0
        public void RemoveCardAwakened()
        {
            if (this.cardAwakened != null)
            {
                this.CardAwakened?.Invoke(null);

                this.RemoveEntityFromLayer(this.cardAwakened);

                this.cardAwakened = null;
            }
        }