CultivationOfBrewing-2/Assets/Scripts/Project/UI/UI_Item/UI_GenerateItemsBtn.cs

21 lines
434 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UI_GenerateItemsBtn : BaseItem
{
public Action<GameObject> callBack;
protected override void OnClick(string btnName)
{
switch (btnName)
{
case "RemoveBtn":
callBack?.Invoke(gameObject);
break;
default:
break;
}
}
}