//********************************************************// // // // Copyright © All rights reserved. MyNameIsVoo. 2020. // // // // REPRODUCTION FORBIDEN // // // //********************************************************// using UnityEngine; namespace ICWM { namespace ToolTipSystem { [RequireComponent(typeof(MeshRenderer))] public class ToolTip : MonoBehaviour { #region Attributes [Header("NOTE! You can add this script only to gameobjects with MeshRenderer script")] [Header("ATTRIBUTES")] public string m_NameItem = ""; public string m_Description = ""; [Header("HELPERS")] public int m_ID = -1; #endregion private void Start() { if (m_ID == -1) { m_ID = InventoryBase.instance.idItemTooltip; InventoryBase.instance.idItemTooltip += 1; } } } } }