| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /// <summary>
- /// ZWN
- ///运之掌上测试
- /// 20220216
- /// </summary>
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class PalmHandTest : MonoBehaviour {
- public Text text1;
- public Text text2;
- public Text text3;
- public Text text4;
- private int num1 = 0;
- private int num2 = 0;
- private int num3 = 0;
- private int num4 = 0;
- // Use this for initialization
- void Start () {
-
- }
-
- // Update is called once per frame
- void Update ()
- {
- if (PalmHandManager.GetLeftLateralRaisee)
- {
- text1.text = "GetLeftLateralRaisee " + num1++;
- PalmHandManager.GetLeftLateralRaisee = false;
- }
- if (PalmHandManager.GetRightLateralRaisee)
- {
- text2.text = "GetRightLateralRaisee " + num2++;
- PalmHandManager.GetRightLateralRaisee = false;
- }
- if (PalmHandManager.GetLeftArmDown)
- {
- text3.text = "GetLeftArmDown " + num3++;
- }
- if (PalmHandManager.GetRightArmDown)
- {
- text4.text = "GetRightArmDown " + num4++;
- }
- }
- }
|