void Start() { pb_MetaDataComponent md = gameObject.GetComponent <pb_MetaDataComponent>(); if (md == null) { md = gameObject.AddComponent <pb_MetaDataComponent>(); } }
void OnEnable() { data = (pb_MetaDataComponent) target; diff = data.metadata.componentDiff; }