void Update() { elapsed += Time.deltaTime; if (elapsed > 1f) { elapsed = 0f; Dictionary <string, string> dict = new Dictionary <string, string>(); dict.Add("firstName", "De Hua"); dict.Add("lastName", "Liu"); dict.Add("age", "55"); Person person = XmlParser.ComvertType <Person>(dict); Debug.Log(new StringBuilder().AppendFormat("{0} {1}, {2}", person.lastName, person.firstName, person.age)); } }