using System; using TriLibCore.Interfaces; using TriLibCore.Mappers; using UnityEngine; namespace TriLibCore.Samples { /// /// Represents a UserPropertiesMapper that uses a callback when any User Property is processed. /// public class SampleUserPropertiesMapper : UserPropertiesMapper { /// /// The callback to call when any User Property is processed. /// public Action OnUserDataProcessed; public override void OnProcessUserData(AssetLoaderContext assetLoaderContext, GameObject gameObject, string propertyName, object propertyValue) { if (OnUserDataProcessed != null) { OnUserDataProcessed(gameObject, propertyName, propertyValue); } } } }