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