Esempio n. 1
0
    //Lade Statistiken
    public void LoadStatistics()
    {
        if (onlyOneAI)
        {
            AI ai = ais[aiSelection.GetComponent <Dropdown>().value];
            TrainingSession session  = ai.trainingSessions[sessionSelection.GetComponent <Dropdown>().value];
            int             criteria = criteriaSelection.GetComponent <Dropdown>().value;

            statisticManager.LoadOneStatistic(session, criteria);
        }

        else
        {
            List <AI> ais = AI.GetAll();
            List <TrainingSession> sessions = new List <TrainingSession>();

            foreach (AI ai in ais)
            {
                sessions.Add(ai.GetLatestSession());
            }

            statisticManager.LoadAllStatistics(sessions, criteriaSelection.GetComponent <Dropdown>().value);
        }
    }