ATRect.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace AnyThinkAds.Api
  5. {
  6. public class ATRect
  7. {
  8. public ATRect(int x, int y, int width, int height, bool usesPixel)
  9. {
  10. this.x = x;
  11. this.y = y;
  12. this.width = width;
  13. this.height = height;
  14. this.usesPixel = usesPixel;
  15. }
  16. public ATRect(int x, int y, int width, int height)
  17. {
  18. this.x = x;
  19. this.y = y;
  20. this.width = width;
  21. this.height = height;
  22. }
  23. public int x = 0;
  24. public int y = 0;
  25. public int width = 0;
  26. public int height = 0;
  27. // public bool usesPixel = false;
  28. #if UNITY_ANDROID
  29. public bool usesPixel = true;
  30. #else
  31. public bool usesPixel = false;
  32. #endif
  33. }
  34. public class ATSize
  35. {
  36. public ATSize(int width, int height, bool usesPixel)
  37. {
  38. this.width = width;
  39. this.height = height;
  40. this.usesPixel = usesPixel;
  41. }
  42. public ATSize(int width, int height)
  43. {
  44. this.width = width;
  45. this.height = height;
  46. }
  47. public int width = 0;
  48. public int height = 0;
  49. #if UNITY_ANDROID
  50. public bool usesPixel = true;
  51. #else
  52. public bool usesPixel = false;
  53. #endif
  54. }
  55. }