Loading files
2046045a2This file is pinned to the selected release. Download the original to open it in your design tool.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Leap.Unity.ARTesting {
public class PoseBangReceiver_SetToTrigger : MonoBehaviour,
IStreamReceiver<Pose> {
public Collider toSetToTrigger;
private void Reset() {
if (toSetToTrigger == null) toSetToTrigger = GetComponent<Collider>();
}
private void OnValidate() {
if (toSetToTrigger == null) toSetToTrigger = GetComponent<Collider>();
}
public void Close() {
}
public void Open() {
}
public void Receive(Pose data) {
toSetToTrigger.isTrigger = true;
}
}
}