Example #1
0
        public void                                    ApplyTo(TEntity entity, Boolean replaceExisting = true, params int[] indices)
        {
            var count = RemoveCompIndexes.Count;

            for (var i = 0; i < count; i++)
            {
                var index = RemoveCompIndexes[i];
                if (entity.HasComponent(index))
                {
                    entity.RemoveComponent(index);
                }
            }
            Proto.CopyToExt(entity, replaceExisting, indices);
        }