PalmHandTest.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 PalmHandTest : MonoBehaviour {
  11. public Text text1;
  12. public Text text2;
  13. public Text text3;
  14. public Text text4;
  15. private int num1 = 0;
  16. private int num2 = 0;
  17. private int num3 = 0;
  18. private int num4 = 0;
  19. // Use this for initialization
  20. void Start () {
  21. }
  22. // Update is called once per frame
  23. void Update ()
  24. {
  25. if (PalmHandManager.GetLeftLateralRaisee)
  26. {
  27. text1.text = "GetLeftLateralRaisee " + num1++;
  28. PalmHandManager.GetLeftLateralRaisee = false;
  29. }
  30. if (PalmHandManager.GetRightLateralRaisee)
  31. {
  32. text2.text = "GetRightLateralRaisee " + num2++;
  33. PalmHandManager.GetRightLateralRaisee = false;
  34. }
  35. if (PalmHandManager.GetLeftArmDown)
  36. {
  37. text3.text = "GetLeftArmDown " + num3++;
  38. }
  39. if (PalmHandManager.GetRightArmDown)
  40. {
  41. text4.text = "GetRightArmDown " + num4++;
  42. }
  43. }
  44. }