diff --git a/Unity/Thing.cs b/Unity/Thing.cs index aa03f00..7ad3e12 100644 --- a/Unity/Thing.cs +++ b/Unity/Thing.cs @@ -2,12 +2,21 @@ using UnityEngine; namespace Passer.RoboidControl.Unity { - + + /// + /// The representation of a Thing in Unity + /// public class Thing : MonoBehaviour { + /// + /// The core C# thing + /// [field: SerializeField] public RoboidControl.Thing core {get; set; } + /// + /// Set the core C# thing + /// protected void SetCoreThing(RoboidControl.Thing thing) { core = thing; core.component = this; @@ -20,6 +29,9 @@ namespace Passer.RoboidControl.Unity { siteServer.site.Add(thing); } + /// + /// Update the Unity representation + /// protected virtual void Update() { if (core == null) return; diff --git a/Unity/TouchSensor.cs b/Unity/TouchSensor.cs index bd9c8d6..0655f9f 100644 --- a/Unity/TouchSensor.cs +++ b/Unity/TouchSensor.cs @@ -3,6 +3,9 @@ using UnityEngine; namespace Passer.RoboidControl.Unity { + /// + /// The Unity representation of the TouchSensor + /// public class TouchSensor : Thing { public RoboidControl.TouchSensor coreSensor {