public void Setup(FactoryBase factory)
    {
        this.factory = factory;
        int i = 0;

        foreach (FactoryTask factoryTask in factory.factoryTaskPrefabs)
        {
            buttonList[i].Setup(factoryTask, () => factory.CreateTask(factoryTask));
            i++;
        }

        RefreshUI();
    }