Example #1
0
 public void ChangeFontType(FontsManager.FontType type)
 {
     if (type != fontType)
     {
         fontType = type;
         UpdateFont();
     }
 }
Example #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();
        }
    }
Example #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();
    }