CurrencyActionManager.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /// <summary>
  2. /// ZWN
  3. /// 20211224
  4. /// </summary>
  5. using System.Collections;
  6. using System.Collections.Generic;
  7. using UnityEngine;
  8. /// <summary>
  9. /// 通用手势
  10. /// </summary>
  11. public static class CurrencyActionManager
  12. {
  13. //左举手
  14. private static bool leftHandsUp = false;
  15. public static bool GetLeftHandsUp
  16. {
  17. get { return leftHandsUp; }
  18. set { leftHandsUp = value; }
  19. }
  20. //右举手
  21. private static bool rightHandsUp = false;
  22. public static bool GetRightHandsUp
  23. {
  24. get { return rightHandsUp; }
  25. set { rightHandsUp = value; }
  26. }
  27. //双手交叉
  28. private static bool armCross = false;
  29. public static bool GetArmCross
  30. {
  31. get { return armCross; }
  32. set { armCross = value; }
  33. }
  34. //左手静态动作
  35. private static HandPoseEnum lefthandPoseDetect;
  36. public static HandPoseEnum GetLeftHandPoseDetect
  37. {
  38. get { return lefthandPoseDetect; }
  39. set { lefthandPoseDetect = value; }
  40. }
  41. //右手静态动作
  42. private static HandPoseEnum righthandPoseDetect;
  43. public static HandPoseEnum GetRighthandPoseDetect
  44. {
  45. get { return righthandPoseDetect; }
  46. set { righthandPoseDetect = value; }
  47. }
  48. }