public ReflectionItem(Type masterType, string target) { MasterType = masterType; Target = target; ReflectionItemType = DetectReflectionItemType(target);//Detect the type first Debug.Log($"new Reflection Item Master(static class): {MasterType.Name} Target({ReflectionItemType}): {Target}"); }
public string Target; //the Target variable name public ReflectionItem(object master, string target) { Master = master; MasterType = master.GetType(); Target = target; ReflectionItemType = DetectReflectionItemType(target);//Detect the type first Debug.Log($"new Reflection Item Master(instance variable): {MasterType.Name} Target({ReflectionItemType}): {Target}"); }