mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 21:57:37 +02:00
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
This commit is contained in:
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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user