コード例 #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;
            }
        }