using System.Collections.Generic; using UnityEngine; namespace nadena.dev.modular_avatar.core { [AddComponentMenu("Modular Avatar/MA Replace Object")] [DisallowMultipleComponent] [HelpURL("https://modular-avatar.nadena.dev/docs/reference/replace-object?lang=auto")] public class ModularAvatarReplaceObject : AvatarTagComponent, IHaveObjReferences { public AvatarObjectReference targetObject = new AvatarObjectReference(); public override void ResolveReferences() { targetObject?.Get(this); } public IEnumerable GetObjectReferences() { if (targetObject != null) yield return targetObject; } } }