RoboidControl-csharp/Sensors/TouchSensor.cs
Pascal Serrarens 923cb317af Grabbing food
2025-02-17 16:02:29 +01:00

17 lines
445 B
C#

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