Skip to content

Instantly share code, notes, and snippets.

@baba-s
Created November 23, 2020 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baba-s/91f0fad432055804657420e526c4b376 to your computer and use it in GitHub Desktop.
Save baba-s/91f0fad432055804657420e526c4b376 to your computer and use it in GitHub Desktop.
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