コード例 #1
0
    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));
                    }
                }
            }
        }
    }
コード例 #2
0
 public void removeGlyphDownloadedListener(GlyphDownloadListener listener)
 {
     downloadListeners.Remove(listener);
 }