CurrencyTest.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /// <summary>
  2. /// ZWN
  3. ///通用手势测试
  4. /// 20220216
  5. /// </summary>
  6. using System.Collections;
  7. using System.Collections.Generic;
  8. using UnityEngine;
  9. using UnityEngine.UI;
  10. public class CurrencyTest : MonoBehaviour {
  11. public Text text1;
  12. public Text text2;
  13. public Text text3;
  14. public Text text4;
  15. public Text text5;
  16. private int num1 = 0;
  17. private int num2 = 0;
  18. private int num3 = 0;
  19. private int num4 = 0;
  20. private int num5 = 0;
  21. // Use this for initialization
  22. void Start () {
  23. }
  24. // Update is called once per frame
  25. void Update ()
  26. {
  27. if (CurrencyActionManager.GetArmCross)
  28. {
  29. text1.text = "GetArmCross " + num1++;
  30. }
  31. text2.text = "GetRightLateralRaisee " + CurrencyActionManager.GetLeftHandPoseDetect.ToString();
  32. text3.text = "GetLeftHandPoseDetect " + CurrencyActionManager.GetRighthandPoseDetect.ToString();
  33. if (CurrencyActionManager.GetLeftHandsUp)
  34. {
  35. text4.text = "GetLeftHandsUp " + num4++;
  36. CurrencyActionManager.GetLeftHandsUp = false;
  37. }
  38. if (CurrencyActionManager.GetRightHandsUp)
  39. {
  40. text5.text = "GetRightHandsUp " + num5++;
  41. CurrencyActionManager.GetRightHandsUp = false;
  42. }
  43. }
  44. }