mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-15 22:25:07 +00:00
8d8c275e66
* 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 45ef0fb0bcf05464230a9a2da77eb716fc4b984d. * Add TooltipGiver component where previously hardcoded * Remove cherry-pick residue
17 lines
No EOL
324 B
C#
17 lines
No EOL
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);
|
|
|
|
}
|
|
}
|
|
} |