ShakeTest.cs 560 B

12345678910111213141516171819202122232425262728293031
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class ShakeTest : MonoBehaviour
  5. {
  6. // Start is called before the first frame update
  7. void Start()
  8. {
  9. var isConnect = ShakeHelp.CreateConnect();
  10. if(isConnect)
  11. {
  12. Debug.Log("·¢ËÍÕð¶¯");
  13. ShakeHelp.SendShake(127, 5);
  14. }
  15. }
  16. // Update is called once per frame
  17. void Update()
  18. {
  19. }
  20. private void OnDestroy()
  21. {
  22. ShakeHelp.CloseConnect();
  23. Debug.Log("¹Ø±Õ");
  24. }
  25. }