Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. [System.Serializable]
  2. public struct LanguageComp
  3. {
  4. public Language name;
  5. public float charSize;
  6. [TextArea] public string text;
  7. // public bool RightToLeft;
  8.  
  9. public LanguageComp(Language language, float characterSize)//,bool Right2Left=false)
  10. {
  11. name = language;
  12. charSize=characterSize;
  13. text="";
  14. // RightToLeft=Right2Left;
  15. }
  16. public int LanguagesCount()
  17. {
  18. return System.Enum.GetValues(typeof(LanguageComp)).Length;
  19. }
  20. }
  21.  
  22. public enum Language
  23. {
  24. Eng,
  25. Esp,
  26. Rus,
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement