public void ReplaceGraphicsPack(ChessKnight.Unity.AssetsManagament.GraphicsPackConfig newValue)
    {
        var index     = GameComponentsLookup.GraphicsPack;
        var component = CreateComponent <ChessKnight.Unity.GraphicsPackComponent>(index);

        component.Value = newValue;
        ReplaceComponent(index, component);
    }
    public GameEntity SetGraphicsPack(ChessKnight.Unity.AssetsManagament.GraphicsPackConfig newValue)
    {
        if (hasGraphicsPack)
        {
            throw new Entitas.EntitasException("Could not set GraphicsPack!\n" + this + " already has an entity with ChessKnight.Unity.GraphicsPackComponent!",
                                               "You should check if the context already has a graphicsPackEntity before setting it or use context.ReplaceGraphicsPack().");
        }
        var entity = CreateEntity();

        entity.AddGraphicsPack(newValue);
        return(entity);
    }
    public void ReplaceGraphicsPack(ChessKnight.Unity.AssetsManagament.GraphicsPackConfig newValue)
    {
        var entity = graphicsPackEntity;

        if (entity == null)
        {
            entity = SetGraphicsPack(newValue);
        }
        else
        {
            entity.ReplaceGraphicsPack(newValue);
        }
    }