Ejemplo n.º 1
0
        protected virtual void EffectOnDestroyComponentDestroyed(EffectOnDestroy data, EffectOnDestroy group)
        {
            var handler = new EffectOnDestroyComponentDestroyed();

            handler.System = this;
            handler.Event  = data;
            handler.Group  = group;
            StartCoroutine(handler.Execute());
        }
Ejemplo n.º 2
0
        protected void EffectOnDestroyComponentDestroyedFilter(EffectOnDestroy data)
        {
            var GroupEffectOnDestroy = EffectOnDestroyManager[data.EntityId];

            if (GroupEffectOnDestroy == null)
            {
                return;
            }
            if (!GroupEffectOnDestroy.Enabled)
            {
                return;
            }
            this.EffectOnDestroyComponentDestroyed(data, GroupEffectOnDestroy);
        }