private void OnAssetChanged(AssetItem obj, bool oldValue, bool newValue)
 {
     // Make sure we clone the item here only if it is necessary
     // Cloning the AssetItem is mandatory in order to make sure
     // the asset item won't change
     AssetChanged?.Invoke(obj.Clone(true), oldValue, newValue);
 }
Exemple #2
0
 /// <summary>
 /// Gets a clone copy of the asset dependency.
 /// </summary>
 /// <returns>the clone instance</returns>
 public AssetLink Clone()
 {
     return(new AssetLink(Item.Clone(true), Type));
 }
 private void OnAssetChanged(AssetItem obj)
 {
     Action<AssetItem> handler = AssetChanged;
     // Make sure we clone the item here only if it is necessary
     // Cloning the AssetItem is mandatory in order to make sure
     // the asset item won't change
     if (handler != null) handler(obj.Clone(true));
 }
 private void OnAssetChanged(AssetItem obj, bool oldValue, bool newValue)
 {
     // Make sure we clone the item here only if it is necessary
     // Cloning the AssetItem is mandatory in order to make sure
     // the asset item won't change
     AssetChanged?.Invoke(obj.Clone(true), oldValue, newValue);
 }