SuperMeatBoy

EnumExtendor

Jan 7th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
Add Comment
Please, Sign In to add comment