RoboidControl-csharp/Sensors/TouchSensor.cs

16 lines
482 B
C#

namespace Passer.Control.Core {
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
}
}