private void OnDeserialize() { animalRegister = JsonProcessor.Deserialize <AnimalRegister>(txtJson.text); UpdateLog(); btnSerialize.interactable = animalRegister != null; }
private void OnLoadAsset() { animalRegister = JsonProcessor.Deserialize <AnimalRegister>(jsonAsset.text); UpdateLog(); txtJson.text = jsonAsset.text; btnSerialize.interactable = animalRegister != null; btnDeserialize.interactable = !string.IsNullOrWhiteSpace(txtJson.text); }