public void ReplacePhysicsRaycast(IPhysicsRaycast newPhysicsRaycast)
    {
        var index     = GameComponentsLookup.PhysicsRaycast;
        var component = CreateComponent <PhysicsRaycastComponent>(index);

        component.physicsRaycast = newPhysicsRaycast;
        ReplaceComponent(index, component);
    }
    public OcclusionTransparentSystem(Contexts _context, IPhysicsRaycast _physicsRaycast)
    {
        contexts = _context;
        var entities = contexts.game.GetEntities(GameMatcher.Camera);

        foreach (GameEntity entity in entities)
        {
            entity.AddPhysicsRaycast(_physicsRaycast);
        }
    }