Esempio n. 1
0
        public void EnumInjectionParseTest()
        {
            string type  = "LocalEnum.ForceMode";
            string value = "ForceMode.Acceleration";


            Type typeLDtk = LDtkFieldParser.ParseFieldType(type);

            Debug.Log(typeLDtk);

            object o = LDtkFieldInjector.GetValue(typeLDtk, value);

            Debug.Log(o);
        }
 private static object GetObject(Type type, FieldInstance instanceTypeName, object value)
 {
     return(LDtkFieldParser.GetParserMethodForType(instanceTypeName).Invoke(value));
 }