备份CatanBuilding瘦身独立工程
This commit is contained in:
30
Assets/Scripts/UI/Home/SupplyDropDetailsItem.cs
Normal file
30
Assets/Scripts/UI/Home/SupplyDropDetailsItem.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class SupplyDropDetailsItem : MonoBehaviour
|
||||
{
|
||||
public Image icon;
|
||||
public TMP_Text text_title;
|
||||
public List<RewardItemNew> rewardItems;
|
||||
public List<GameObject> lines;
|
||||
private void Reset()
|
||||
{
|
||||
icon = transform.Find("icon").GetComponent<Image>();
|
||||
text_title = transform.Find("bg_bet/text_title").GetComponent<TMP_Text>();
|
||||
rewardItems = new List<RewardItemNew>()
|
||||
{
|
||||
transform.Find("reward/reward1").GetComponent<RewardItemNew>(),
|
||||
transform.Find("reward/reward2").GetComponent<RewardItemNew>(),
|
||||
transform.Find("reward/reward3").GetComponent<RewardItemNew>(),
|
||||
transform.Find("reward/reward4").GetComponent<RewardItemNew>() };
|
||||
lines = new List<GameObject>()
|
||||
{
|
||||
transform.Find("reward/line1").gameObject,
|
||||
transform.Find("reward/line2").gameObject,
|
||||
transform.Find("reward/line3").gameObject
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user