public static void UpdateCurrentDelegate(string TypeName) { if(!TypeDelegateLookup.ContainsKey(TypeName)) { CurrentDelegate = null; } else { CurrentDelegate = TypeDelegateLookup[TypeName]; } CurrentType = TypeName; }
public static void UpdateCurrentDelegate(string TypeName) { if (!TypeDelegateLookup.ContainsKey(TypeName)) { CurrentDelegate = null; } else { CurrentDelegate = TypeDelegateLookup[TypeName]; } CurrentType = TypeName; }
public static void AddHandler(string TypeName, HandleTypeOnInspectorGUI Handler) { TypeDelegateLookup[TypeName] = Handler; }