CleverHandTest.cs 930 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 CleverHandTest : 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. }
  23. // Update is called once per frame
  24. void Update ()
  25. {
  26. if (CleverHand.GetSmallMouse)
  27. {
  28. text1.text = "GetSmallMouse " + num1++;
  29. }
  30. if (CleverHand.GetBigCat)
  31. {
  32. text2.text = "GetBigCat " + num2++;
  33. }
  34. if (CleverHand.GetShake)
  35. {
  36. text3.text = "GetShake " + num3++;
  37. }
  38. if (CleverHand.GetGoHome)
  39. {
  40. text4.text = "GetGoHome " + num4++;
  41. }
  42. }
  43. }