public void AssignDataAsset(EasyVoiceDataAsset newDataAsset)
{
if (newDataAsset.dataVersion < easyVoiceVersion)
{
data = newDataAsset;
UpgradeAsset();
Debug.Log("Your backwards-compatible EasyVoice data asset was successfully assigned from '" + "Assets/" + dataAssetName + "' and upgraded, you may now edit it.");
//EditorUtility.SetDirty(this);
}
else if (newDataAsset.dataVersion > easyVoiceVersion)
{
Debug.LogError("Selected EasyVoice data asset version (" + newDataAsset.dataVersion + ") is higher than our version (" + easyVoiceVersion + "), please update the plugin before importing!");
// We could let them import it... If there are no compile errors then stuff might be still compatible
// The problem is, if there are issues, they won't be obvious or immediate as much as corrupt everything, which we really want to avoid
}
else
{
data = newDataAsset;
//Debug.Log("Selected EasyVoice data asset was successfully assigned from '" + "Assets/" + EasyVoiceSettings.dataAssetName + "', you may now edit your lines.");
//EditorUtility.SetDirty(this);
}
}