Example #1
0
        protected override void OnCreate()
        {
            Parameters = WeaponParameters.Instance;
            HitMask    = Parameters.GetExplosiveHitLayer();

            Colliders = new Collider[32];

            ExplosiveQuery = GetEntityQuery(new EntityQueryDesc
            {
                All  = new ComponentType[] { ComponentType.ReadOnly <Explosive>(), ComponentType.ReadOnly <Translation>(), ComponentType.ReadOnly <OwnerID>() },
                None = new ComponentType[] { ComponentType.ReadOnly <Projectile>() }
            });
        }