Пример #1
0
        protected virtual void PointsOnDestroyComponentDestroyed(PointsOnDestroy data, PointsOnDestroy group)
        {
            var handler = new PointsOnDestroyComponentDestroyed();

            handler.System = this;
            handler.Event  = data;
            handler.Group  = group;
            StartCoroutine(handler.Execute());
        }
Пример #2
0
        protected void PointsOnDestroyComponentDestroyedFilter(PointsOnDestroy data)
        {
            var GroupPointsOnDestroy = PointsOnDestroyManager[data.EntityId];

            if (GroupPointsOnDestroy == null)
            {
                return;
            }
            if (!GroupPointsOnDestroy.Enabled)
            {
                return;
            }
            this.PointsOnDestroyComponentDestroyed(data, GroupPointsOnDestroy);
        }