Lib.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. public class Lib
  5. {
  6. public static string ConfigPrefs = "config";
  7. public static string AudioPrefs = "AudioOn";
  8. public static string MusicPrefs = "MusicOn";
  9. public static Color SelfMessage = new Color(21/255f, 96/255f, 96/255f, 1);
  10. public static Color OtherMessage = new Color(0, 0, 0, 180/255f);
  11. public static Color FirstRank = new Color(1, 128/255f, 171/255f, 1);
  12. public static Color SecondRank = new Color(95/255f, 214/255f, 1, 1);
  13. public static Color ThirdRank = new Color(54/255f, 205/255f, 124/255f, 1);
  14. public static Color NormalRank = new Color(185/255f, 185/255f, 185/255f, 1);
  15. public static Color Pink = new Color(1, 60/255f, 60/255f, 1);
  16. public static Color Orange = new Color(233/255f, 63/255f, 20/255f, 1);
  17. public static Color LightGray = new Color(165/255f, 192/255f, 200/255f, 1);
  18. public static Color RoomClosing = new Color(240/255f, 103/255f, 101/255f, 1);
  19. public static Color RoomRunning = new Color(90/255f, 170/255f, 39/255f, 1);
  20. public static Sprite PackSprite
  21. {
  22. get { return ResourceManager.LoadSprite(ResourceLabel.Pack, Folder.UI); }
  23. }
  24. public static Sprite GoldSprite
  25. {
  26. get { return ResourceManager.LoadSprite(ResourceLabel.Gold, Folder.UI); }
  27. }
  28. public static Sprite DiamondSprite
  29. {
  30. get { return ResourceManager.LoadSprite(ResourceLabel.Diamond, Folder.UI); }
  31. }
  32. public static Sprite BigGoldSprite
  33. {
  34. get { return ResourceManager.LoadSprite(ResourceLabel.BigGold, Folder.Scene); }
  35. }
  36. public static Sprite Atlas
  37. {
  38. get { return ResourceManager.LoadSprite(ResourceLabel.Atlas, Folder.Atlas); }
  39. }
  40. public static Material GrayMat
  41. {
  42. get { return ResourceManager.Load<Material>(ResourceLabel.GrayMat, Folder.UI); }
  43. }
  44. public static Material UIMaskMat
  45. {
  46. get { return ResourceManager.Load<Material>(ResourceLabel.UIMaskMat, Folder.UI); }
  47. }
  48. public static Material GraySpriteMat
  49. {
  50. get { return ResourceManager.Load<Material>(ResourceLabel.GraySpriteMat, Folder.UI); }
  51. }
  52. public static Material GrayMeshMat
  53. {
  54. get { return ResourceManager.Load<Material>(ResourceLabel.GrayMeshMat, Folder.UI); }
  55. }
  56. }