RoboidControl-csharp/Sensors/TouchSensor.cs
2025-02-19 14:50:09 +01:00

16 lines
483 B
C#

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