public void OnSelectUpgrade(int id)
    {
        neededType = types[id];

        selectedSector = sectorsToSelect[id].GetComponent <CircleSelectUpgrade>();
        selectedSector.StartSelectUpgrade();

        MenuManager.HideTopMenu();
        onStartSelectUpgradeEvent?.Invoke();
    }
    CircleSector.SectorType[] FillTypes()
    {
        if (allTypes == null || allTypes.Length == 0)
        {
            allTypes    = new CircleSector.SectorType[4];
            allTypes[0] = CircleSector.SectorType.Yellow;
            allTypes[1] = CircleSector.SectorType.Green;
            allTypes[2] = CircleSector.SectorType.Blue;
            allTypes[3] = CircleSector.SectorType.Red;
        }
        else
        {
            allTypes.Shuffle();
        }

        CircleSector.SectorType[] types = new CircleSector.SectorType[sectorsToSelect.Length];
        for (int i = 0; i < types.Length; ++i)
        {
            types[i] = allTypes[i];
        }

        return(types);
    }
 public void Upgrade(int id, int level, CircleSector.SectorType type)
 {
     sectors[id].Upgrade(level, type);
 }