diff --git a/Assets/Scripts/LevelEditor/TooltipGiver.cs b/Assets/Scripts/LevelEditor/TooltipGiver.cs new file mode 100644 index 000000000..e1d7cec6e --- /dev/null +++ b/Assets/Scripts/LevelEditor/TooltipGiver.cs @@ -0,0 +1,17 @@ +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); + + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/LevelEditor/TooltipGiver.cs.meta b/Assets/Scripts/LevelEditor/TooltipGiver.cs.meta new file mode 100644 index 000000000..9b90d0648 --- /dev/null +++ b/Assets/Scripts/LevelEditor/TooltipGiver.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2a525ece7c981f3418a70bbfa58c1146 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: