Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Serializable]
- public class AbilitiesData : ScriptableObject
- {
- public class AbilityInfo
- {
- public AbilityType Type;
- public string str1;
- public string str2;
- public string str3;
- }
- public List<AbilityInfo> Infos;
- public string GetInfo(AbiltityType type)
- {
- return Infos.First(x=>x.Type == type).str1;
- }
- }
Add Comment
Please, Sign In to add comment