RoboidControl-csharp/Sensors/TouchSensor.cs
2025-02-19 10:01:22 +01:00

13 lines
402 B
C#

namespace Passer.Control.Core {
public class TouchSensor(RemoteParticipant participant, bool invokeEvent = true) : Thing(participant, invokeEvent) {
public bool touchedSomething = false;
#if UNITY_5_3_OR_NEWER
public override void CreateComponent() {
this.component = Unity.TouchSensor.Create(this);
this.component.core = this;
}
#endif
}
}