public void UpdateDate() { CreaturePackAsset packAsset = (CreaturePackAsset)target; { TextAsset bytesAsset = (TextAsset)creaturePackBytes.objectReferenceValue; if (bytesAsset) { if (bytesAsset.bytes.Length > 0) { packAsset.ResetState(); packAsset.creaturePackBytes = bytesAsset; } } } { TextAsset jsonAsset = (TextAsset)creatureMetaJSON.objectReferenceValue; if (jsonAsset) { if (jsonAsset.bytes.Length > 0) { packAsset.creatureMetaJSON = jsonAsset; packAsset.LoadMetaData(); } } } }
public void UpdateDate() { CreaturePackAsset packAsset = (CreaturePackAsset)target; TextAsset bytesAsset = (TextAsset)creaturePackBytes.objectReferenceValue; if (bytesAsset) { if (bytesAsset.bytes.Length > 0) { packAsset.ResetState(); packAsset.creaturePackBytes = bytesAsset; } } }