/// /// ZWN ///巧手丫测试 /// 20220216 /// using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class CleverHandTest : 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 (CleverHand.GetSmallMouse) { text1.text = "GetSmallMouse " + num1++; } if (CleverHand.GetBigCat) { text2.text = "GetBigCat " + num2++; } if (CleverHand.GetShake) { text3.text = "GetShake " + num3++; } if (CleverHand.GetGoHome) { text4.text = "GetGoHome " + num4++; } } }