备份CatanBuilding瘦身独立工程
This commit is contained in:
25
Assets/Scripts/UI/Appearance/AppearanceItem.cs
Normal file
25
Assets/Scripts/UI/Appearance/AppearanceItem.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class AppearanceItem : MonoBehaviour
|
||||
{
|
||||
public Button btn_item;
|
||||
public Image icon;
|
||||
public RewardItemNew reward;
|
||||
public GameObject equipped;
|
||||
public GameObject newGo;
|
||||
public GameObject unlock;
|
||||
public GameObject selected;
|
||||
public int index;
|
||||
public Action<int> action;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
btn_item.onClick.AddListener(OnClickItem);
|
||||
}
|
||||
void OnClickItem()
|
||||
{
|
||||
action?.Invoke(index);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user