OVRRecord.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Assets.OVR.Scripts
  6. {
  7. public class Record
  8. {
  9. public string category;
  10. public string message;
  11. public Record(string cat, string msg)
  12. {
  13. category = cat;
  14. message = msg;
  15. }
  16. }
  17. public class RangedRecord : Record
  18. {
  19. public float value;
  20. public float min;
  21. public float max;
  22. public RangedRecord(string cat, string msg, float val, float minVal, float maxVal)
  23. : base(cat, msg)
  24. {
  25. value = val;
  26. min = minVal;
  27. max = maxVal;
  28. }
  29. }
  30. public delegate void FixMethodDelegate(UnityEngine.Object obj, bool isLastInSet, int selectedIndex);
  31. public class FixRecord : Record
  32. {
  33. public FixMethodDelegate fixMethod;
  34. public UnityEngine.Object targetObject;
  35. public string[] buttonNames;
  36. public bool complete;
  37. public FixRecord(string cat, string msg, FixMethodDelegate fix, UnityEngine.Object target, string[] buttons)
  38. : base(cat, msg)
  39. {
  40. buttonNames = buttons;
  41. fixMethod = fix;
  42. targetObject = target;
  43. complete = false;
  44. }
  45. }
  46. }