namespace VRTK.Prefabs.Helpers.Tooltip
{
using UnityEngine;
using Malimbe.PropertySerializationAttribute;
using Malimbe.XmlDocumentationAttribute;
using Malimbe.MemberClearanceMethod;
using Malimbe.MemberChangeMethod;
using Zinnia.Data.Attribute;
///
/// The public interface for the TooltipFacade prefab.
///
public class TooltipFacade : MonoBehaviour
{
#region Tooltip Settings
///
/// The object that the tooltip will face towards.
///
[Serialized, Cleared]
[field: Header("Tooltip Settings"), DocumentedByXml]
public GameObject FacingSource { get; set; }
///
/// The target to draw the tooltip line to.
///
[Serialized, Cleared]
[field: DocumentedByXml]
public GameObject LineTarget { get; set; }
#endregion
#region Reference Settings
///
/// The linked Internal Setup.
///
[Serialized]
[field: Header("Reference Settings"), DocumentedByXml, Restricted]
public TooltipConfigurator Configuration { get; protected set; }
#endregion
///
/// Called after has been changed.
///
[CalledAfterChangeOf(nameof(LineTarget))]
protected virtual void OnAfterLineTargetChange()
{
Configuration.SetLine(LineTarget);
}
}
}