39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class AquariumReportFishItem : MonoBehaviour
|
|
{
|
|
[Header("Fish Info")]
|
|
public Transform mask_bg;
|
|
public Image fish_icon;
|
|
public Image icon_rate;
|
|
public Image icon_egg;
|
|
|
|
[Header("Cash Info")]
|
|
public GameObject fish_info;
|
|
public TMP_Text text_cash;
|
|
public TMP_Text text_fish_name;
|
|
|
|
[Header("Player Info")]
|
|
public GameObject player_info;
|
|
public TMP_Text text_player_name;
|
|
public Head text_player_head;
|
|
|
|
public int index;
|
|
|
|
private void Reset()
|
|
{
|
|
mask_bg = transform.Find("mask_bg2").GetComponent<Transform>();
|
|
fish_icon = transform.Find("mask_bg2/icon_fish").GetComponent<Image>();
|
|
icon_rate = transform.Find("mask_bg2/icon_rate").GetComponent<Image>();
|
|
icon_egg = transform.Find("mask_bg2/icon_egg").GetComponent<Image>();
|
|
fish_info = transform.Find("fish_info").gameObject;
|
|
text_cash = transform.Find("fish_info/text_cash").GetComponent<TMP_Text>();
|
|
text_fish_name = transform.Find("fish_info/text_name").GetComponent<TMP_Text>();
|
|
player_info = transform.Find("player_info").gameObject;
|
|
text_player_name = transform.Find("player_info/text_name").GetComponent<TMP_Text>();
|
|
text_player_head = transform.Find("player_info/text_name/btn_head").GetComponent<Head>();
|
|
}
|
|
}
|