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