Game Development Reference
In-Depth Information
A SampleGameMenu class features all texture required for a sample menu screen
Now, we'll code an Editor class to switch between languages. This class will add
menu entries on the application menu, which when clicked will change the active
language, as shown in the following code sample 8-13. This sample draws on a range
of related concepts we've seen already, including new ones. Specifically, it uses
the Reflection , Linq , and Editor classes as well as the Mono Framework XML
handling classes:
01 //-------------------------------------------
02 using UnityEngine;
03 using UnityEditor;
04 using System.Collections;
05 using System.Xml;
06 using System.Linq;
07 using System.Reflection;
08 //-------------------------------------------
 
Search WWH ::




Custom Search