Example #1
0
        /*------------------------*/
        /* read log file function */
        /*------------------------*/
        Episode LoadEpisode(string file_name)
        {
            string  serializeDataPath = Application.dataPath + file_name;
            Episode buf = XmlUtil.Deserialize <Episode>(serializeDataPath);

            return((Episode)buf.Clone());
        }
Example #2
0
 public void ClickOnLoadSomeEpisodes()
 {
     for (int i = 0; i < fNamesOfLoadEpisodes.Length; i++)
     {
         Episode buf = LoadEpisode(fNamesOfLoadEpisodes[i]);
         m_Episodes.Add((Episode)buf.Clone());
     }
     Debug.LogFormat("{0} Episodes were Loaded.", fNamesOfLoadEpisodes.Length);
     //Generate Trajectories
     //GenerateTrajectoriesForREINFORCE_ForExploration();
     GenerateTrajectoriesForREINFORCE_ForMimic();
 }
Example #3
0
 public void ClickOnAdd2Episodes()
 {
     m_Episodes.Add((Episode)m_Episode.Clone());
     Debug.LogFormat("An Episode was added to Episodes data set.");
 }