public void addGlyphDownloadedListener(GlyphDownloadListener listener) { downloadListeners.Add(listener); if (downloadedGlyphs.Count != 0) { Debug.LogWarning("Already has downloaded glyphs. Immediately firing"); foreach (List <Glyph> glyphs in downloadedGlyphs.Values) { if (glyphs != null) { foreach (Glyph glyph in glyphs) { StartCoroutine(listener.onDownloadedGlyph(glyph)); } } } } }
public void removeGlyphDownloadedListener(GlyphDownloadListener listener) { downloadListeners.Remove(listener); }