Ejemplo n.º 1
0
 private void OnEnable()
 {
     settings          = MLAgentsSettings.GetOrCreateSettings();
     settings.Changed += OnSettingsChanged;
     TryRegainPrevTrainingProcess();
     ProcessRecoverLoop();
     UpdateBrainSaveDates();
 }
Ejemplo n.º 2
0
        private static void PlayModeChange(PlayModeStateChange obj)
        {
            switch (obj)
            {
            case PlayModeStateChange.ExitingEditMode:

                var controlled = false;

                var settings = MLAgentsSettings.GetOrCreateSettings();
                if (settings.ActiveConfiguration != null && settings.ActiveConfiguration.trainInEditor)
                {
                    controlled = true;
                }

                SetAcademyBrainsControlled(controlled);
                break;
            }
        }