Exemplo n.º 1
0
 /// <summary>
 /// Called when the mouse enters a 3d model with a collider in scene.
 /// </summary>
 private void OnMouseEnter()
 {
     //Show tooltip
     instance.Show(UIUtility.ColorString(tooltip, color), icon, width, showBackground);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Start is called on the frame when a script is enabled just before any of the Update methods is called the first time.
 /// </summary>
 protected virtual void Start()
 {
     radialMenu = UIUtility.Find <RadialMenu> (instanceName);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Called when the mouse pointer starts hovering the ui element.
 /// </summary>
 /// <param name="eventData">Event data.</param>
 public void OnPointerEnter(PointerEventData eventData)
 {
     //Show tooltip
     instance.Show(UIUtility.ColorString(tooltip, color), icon, width, showBackground);
 }
Exemplo n.º 4
0
 public virtual void Show(MessageOptions settings, UnityAction <string> result, params string[] buttons)
 {
     Show(settings.title, UIUtility.ColorString(settings.text, settings.color), settings.icon, result, buttons);
 }