You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
730 B
C#
27 lines
730 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Autohand.Demo {
|
|
public class HandTouchEventDebugger : MonoBehaviour {
|
|
public HandTouchEvent touchEvent;
|
|
|
|
private void OnEnable() {
|
|
touchEvent.HandStartTouchEvent += StartTouch;
|
|
touchEvent.HandStopTouchEvent += StopTouch;
|
|
}
|
|
|
|
private void OnDisable() {
|
|
touchEvent.HandStartTouchEvent -= StartTouch;
|
|
touchEvent.HandStopTouchEvent -= StopTouch;
|
|
}
|
|
|
|
void StartTouch(Hand hand) {
|
|
Debug.Log("Start Touch: " + hand.name);
|
|
}
|
|
void StopTouch(Hand hand) {
|
|
Debug.Log("Stop Touch: " + hand.name);
|
|
}
|
|
}
|
|
|
|
} |