private void SetPhasesIndex()
        {
            //TODO calcolo dei valori presi da DB
            //TODO atletiAmmessiEliminatorie = QualificationManager.GetAdmittedFightersNumber(numeroAtletiTorneoDisciplina)
            atletiAmmessiEliminatorie = numeroAtletiTorneoDisciplina >= 45 ? 32 :
                                        numeroAtletiTorneoDisciplina >= 24 ? 16 :
                                        numeroAtletiTorneoDisciplina >= 12 ? 8 : 4;

            startPhase = PhasesManager.GetStartingPhase(atletiAmmessiEliminatorie);
        }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     listBacterias = new Bacteria[] {
         new Bacteria(0, "Agromyces sp.", 455f, new Pollutant[] { Pollutant.Nothing }, new Degradant[] { Degradant.Diesel }, 0.000001f / 1.5f),
         new Bacteria(1, "Arthrobacter sp.", 500f, new Pollutant[] { Pollutant.Nothing }, new Degradant[] { Degradant.Diesel }, 0.000002f / 1.5f),
         new Bacteria(2, "Bacillus sp.", 506f, new Pollutant[] { Pollutant.Nothing }, new Degradant[] { Degradant.Biodiesel }, 0.0000024f / 1.5f),
         new Bacteria(3, "Burkholderia sp.", 483f, new Pollutant[] { Pollutant.Nothing }, new Degradant[] { Degradant.Biodiesel }, 0.0000024f / 1.5f),
         new Bacteria(4, "Cupriavidus sp.", 508f, new Pollutant[] { Pollutant.Nothing }, new Degradant[] { Degradant.Diesel }, 0.000001f / 1.5f),
         new Bacteria(5, "Lysobacter sp.", 500f, new Pollutant[] { Pollutant.Nothing }, new Degradant[] { Degradant.Diesel }, 0.000001f / 1.5f),
         new Bacteria(6, "Micrococcus sp.", 476f, new Pollutant[] { Pollutant.Nothing }, new Degradant[] { Degradant.Nothing }, 0.000002f / 1.5f),
         new Bacteria(7, "Sinomonas sp.", 500f, new Pollutant[] { Pollutant.Nothing }, new Degradant[] { Degradant.Diesel }, 0.000001f / 1.5f),
         new Bacteria(8, "Staphylococcus sp.", 512f, new Pollutant[] { Pollutant.Nothing }, new Degradant[] { Degradant.Biodiesel }, 0.0000024f / 1.5f)
     };
     phasesManager = FindObjectOfType <PhasesManager>();
     sm_instance   = this;
 }
        private void ManagePhasesButtons()
        {
            btnLoadPhases.IsEnabled = true;

            btnOpen32th.IsEnabled      = false; //for nnow is always disabled
            btnOpen16th.IsEnabled      = SqlDal_Pools.CountPhasesMatchs(_tournamentId, _disciplineId, PhasesManager.Decode(PhasesType.Finals_16)) == 0 ? false : true;
            btnOpen8th.IsEnabled       = SqlDal_Pools.CountPhasesMatchs(_tournamentId, _disciplineId, PhasesManager.Decode(PhasesType.Finals_8)) == 0 ? false : true;
            btnOpen4th.IsEnabled       = SqlDal_Pools.CountPhasesMatchs(_tournamentId, _disciplineId, PhasesManager.Decode(PhasesType.Finals_4)) == 0 ? false : true;
            btnOpenSemifinal.IsEnabled = SqlDal_Pools.CountPhasesMatchs(_tournamentId, _disciplineId, PhasesManager.Decode(PhasesType.SemiFinals)) == 0 ? false : true;
            btnOpenFinal.IsEnabled     = SqlDal_Pools.CountPhasesMatchs(_tournamentId, _disciplineId, PhasesManager.Decode(PhasesType.Finals)) == 0 ? false : true;
        }