Created
November 23, 2020 03:01
-
-
Save baba-s/91f0fad432055804657420e526c4b376 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sirenix.OdinInspector; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[CreateAssetMenu] | |
public class CharacterData : SerializedScriptableObject | |
{ | |
[SerializeField] private Dictionary<int, JobType> m_table = default; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Example : MonoBehaviour | |
{ | |
private void Awake() | |
{ | |
Resources.Load<CharacterData>( "CharacterData" ); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum JobType | |
{ | |
SOLDIER, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment