Exemplo n.º 1
0
 public void ChangeFontType(FontsManager.FontType type)
 {
     if (type != fontType)
     {
         fontType = type;
         UpdateFont();
     }
 }
Exemplo n.º 2
0
    void Start()
    {
        if (FontsManager.Instance != null)
        {
            // Get font type
            fontType = FontsManager.Instance.GetFontType(textMesh != null && textMesh.font != null ? textMesh.font.name : string.Empty);

            // Get font
            FontsManager.Instance.onFontsUpdated += UpdateFont;
            UpdateFont();
        }
    }
Exemplo n.º 3
0
    void Awake()
    {
        // Get font type
        if (textProObject != null)
        {
            fontType = FontsManager.Instance.GetFontType(textProObject.font.name);
        }
        else if (textUI != null)
        {
            fontType = FontsManager.Instance.GetFontType(textUI.font.name);
        }

        // Get font
        FontsManager.Instance.onFontsUpdated += UpdateFont;
        UpdateFont();
    }