private void AddCollector()
    {
        Debug.Log("Adding collector");
        PlayerInfo temp = factory.GetPlayerInfo();

        if (temp.resources >= collectorCost)
        {
            factory.AddBuildRequest(new UnitBuildRequest()
            {
                buildTime  = collectorBuildTime,
                unitPrefab = collectorPrefab
            });
            temp.resources -= collectorCost;
        }
    }