void ReadFromFile()
 {
     reader = new SRTReader();
     if (reader.Load(AssetDatabase.GetAssetPath(source)))
     {
         texts = reader.getTexts();
         times = reader.getTimes();
     }
 }
Ejemplo n.º 2
0
 void Start()
 {
     reader = new SRTReader();
     if (reader.Load(AssetDatabase.GetAssetPath(srtFile)))
     {
         activeSRTList = reader.getSRTList();
         StartCoroutine(startSrt(activeSRTList));
     }
     else
     {
         Debug.LogError("Can't load file");
     }
 }