Add TooltipGiver.cs
This commit is contained in:
parent
45ef0fb0bc
commit
b4bc2c4653
17
Assets/Scripts/LevelEditor/TooltipGiver.cs
Normal file
17
Assets/Scripts/LevelEditor/TooltipGiver.cs
Normal file
|
|
@ -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);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
Assets/Scripts/LevelEditor/TooltipGiver.cs.meta
Normal file
11
Assets/Scripts/LevelEditor/TooltipGiver.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2a525ece7c981f3418a70bbfa58c1146
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Loading…
Reference in a new issue