SHOW:
|
|
- or go back to the newest paste.
| 1 | [Serializable] | |
| 2 | public class AbilitiesData : ScriptableObject | |
| 3 | {
| |
| 4 | public class AbilityInfo | |
| 5 | {
| |
| 6 | public AbilityType Type; | |
| 7 | public string str1; | |
| 8 | public string str2; | |
| 9 | public string str3; | |
| 10 | ||
| 11 | } | |
| 12 | ||
| 13 | public List<AbilityInfo> Infos; | |
| 14 | public string GetInfo(AbiltityType type) | |
| 15 | {
| |
| 16 | return Infos.First(x=>x.Type == type).str1; | |
| 17 | } | |
| 18 | } |