HeavenStudio/Assets/Scripts/LevelEditor/TooltipGiver.cs
thinedave 8d8c275e66
Replace hardcoded Tooltip.AddTooltip() calls with TooltipGiver script in GameObject (#593)
* Remove all hardcoded Tooltip.AddTooltip() calls

* Add TooltipGiver component where previously hardcoded

* Add TooltipGiver.cs

* Revert "Add TooltipGiver component where previously hardcoded"

This reverts commit 45ef0fb0bc.

* Add TooltipGiver component where previously hardcoded

* Remove cherry-pick residue
2023-12-14 00:04:33 +00:00

17 lines
324 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace HeavenStudio.Editor
{
public class TooltipGiver : MonoBehaviour
{
[SerializeField] private string TooltipText;
void Start()
{
Tooltip.AddTooltip(gameObject, TooltipText);
}
}
}