Per-language Menus

This script updates a Unity UI-based menu's fonts based on the current language. It works by replacing the font field in all-found Text components when the menu is turned on, or when the language is changed.

To use it:


 * 1) Create a new C# file named DynamicFontLanguage.cs, and paste in the code below
 * 2) Attach the new Dynamic Font Language component to the root of your Unity UI menu prefab
 * 3) Assign a default Font in the Inspector, then create as many instances of the "Per Language Fonts" array as you have different fonts.  For each, assign both a font, and the language index (as listed in the Speech Manager) it should display for.

DynamicFontLanguage.cs: