Lib.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 Color PraiseTextWhite = new Color(1, 1, 1, 1);
  21. public static Color PraiseTextBlue = new Color(94/255f, 114/255f, 216/255f, 1);
  22. public static Sprite PackSprite
  23. {
  24. get { return ResourceManager.LoadSprite(ResourceLabel.Pack, Folder.UI); }
  25. }
  26. public static Sprite GoldSprite
  27. {
  28. get { return ResourceManager.LoadSprite(ResourceLabel.Gold, Folder.UI); }
  29. }
  30. public static Sprite DiamondSprite
  31. {
  32. get { return ResourceManager.LoadSprite(ResourceLabel.Diamond, Folder.UI); }
  33. }
  34. public static Sprite BigGoldSprite
  35. {
  36. get { return ResourceManager.LoadSprite(ResourceLabel.BigGold, Folder.Scene); }
  37. }
  38. public static Sprite Atlas
  39. {
  40. get { return ResourceManager.LoadSprite(ResourceLabel.Atlas, Folder.Atlas); }
  41. }
  42. public static Material GrayMat
  43. {
  44. get { return ResourceManager.Load<Material>(ResourceLabel.GrayMat, Folder.UI); }
  45. }
  46. public static Material UIMaskMat
  47. {
  48. get { return ResourceManager.Load<Material>(ResourceLabel.UIMaskMat, Folder.UI); }
  49. }
  50. public static Material GraySpriteMat
  51. {
  52. get { return ResourceManager.Load<Material>(ResourceLabel.GraySpriteMat, Folder.UI); }
  53. }
  54. public static Material GrayMeshMat
  55. {
  56. get { return ResourceManager.Load<Material>(ResourceLabel.GrayMeshMat, Folder.UI); }
  57. }
  58. }