23 lines
713 B
C#
23 lines
713 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class AttributeTips : MonoBehaviour
|
|
{
|
|
public Image icon;
|
|
public TMP_Text text_name;
|
|
public TMP_Text text_info;
|
|
public TMP_Text curValue;
|
|
public TMP_Text max;
|
|
public void Reset()
|
|
{
|
|
icon = transform.Find($"icon_attribute").GetComponent<Image>();
|
|
text_name = transform.Find($"text_name").GetComponent<TMP_Text>();
|
|
text_info = transform.Find($"text_info").GetComponent<TMP_Text>();
|
|
curValue = transform.Find($"current/text_num").GetComponent<TMP_Text>();
|
|
max = transform.Find($"max/text_num").GetComponent<TMP_Text>();
|
|
}
|
|
}
|