Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using Sirenix.OdinInspector;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu]
public class CharacterData : SerializedScriptableObject
{
[SerializeField] private Dictionary<int, JobType> m_table = default;
}
using UnityEngine;
public class Example : MonoBehaviour
{
private void Awake()
{
Resources.Load<CharacterData>( "CharacterData" );
}
}
public enum JobType
{
SOLDIER,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment