Class MultiColliderSensor
Inheritance
MultiColliderSensor
Assembly: Xareus.Unity.Libraries.dll
Syntax
[FunctionDescription("Detects a collision of the first object with any of the objects defined in Others.\nWhen activated, the event context will list all colliding objects in the 'others' path ", new string[] { "Unity", "Collisions", "Unity/Collisions" })]
public class MultiColliderSensor : AInUnityStepSensor
Constructors
MultiColliderSensor(Event, Dictionary<string, Parameter>, ContextHolder)
Declaration
public MultiColliderSensor(Event @event, Dictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
Fields
OBJECT
Declaration
[EventContextEntry]
public static readonly string OBJECT
Field Value
OTHERS
Declaration
[EventContextEntry]
public static readonly string OTHERS
Field Value
Object
Declaration
[ConfigurationParameter("Object", Necessity.Required)]
protected GameObject Object
Field Value
| Type |
Description |
| GameObject |
|
Others
Declaration
[ConfigurationParameter("Others", "Other objects that may trigger the sensor. The sensor will trigger if at least one object of this list collides with the main object", Necessity.Required)]
protected List<GameObject> Others
Field Value
| Type |
Description |
| List<GameObject> |
|
Methods
SafeReset()
Reset a sensor. Note that this code will be executed in unity's thread and the declared parameters (using the ConfigurationParameter attribute) are already filled
Declaration
public override void SafeReset()
Overrides
UnityStepSensorCheck()
This method is called at each selected Unity execution step in Unity's thread. The Unity execution steps used depend on the ExecutionStep property
Declaration
public override ASensor.Result UnityStepSensorCheck()
Returns
Overrides