using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Sirenix.OdinInspector;
public enum USABLETYPE { Ability, Item }
public class Usable : MonoBehaviour
{
public USABLETYPE UsableType;
[ValueDropdown("UsableID")]
public int ID;
ValueDropdownList<int> UsableID()
{
ValueDropdownList<int> _List = new ValueDropdownList<int>();
string[] _Names = UsableType == USABLETYPE.Ability ? ORKFramework.ORK.Abilities.GetNames(false) : ORKFramework.ORK.Items.GetNames(false);
for (int i = 0; i < _Names.Length; i++)
{
_List.Add(_Names[i], i);
}
return _List;
}
}
It looks like you're new here. If you want to get involved, click one of these buttons!