private void CheckInitialise(SerializedProperty property) { if (_button == default(SimpleSOButton)) { var target = property.serializedObject.targetObject; _button = (SimpleSOButton)fieldInfo.GetValue(target); } }
public void OnEnable() { InitialiseStatList(); generateButton = new SimpleSOButton("Generate Card", GenerateCard); }