16 lines
337 B
C#
16 lines
337 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
public class AttributeButton : MonoBehaviour
|
|
{
|
|
public static event Action<AttributeType> OnAttributeSelectedEvent;
|
|
|
|
[Header("Config")]
|
|
[SerializeField] private AttributeType attribute;
|
|
|
|
public void SelectAttribute()
|
|
{
|
|
OnAttributeSelectedEvent?.Invoke(attribute);
|
|
}
|
|
}
|