16 lines
483 B
C#
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
|
|
}
|
|
} |