A class in Root.Township, the global namespace.
Trigger volume that checks the values of AreaOfInfluenceSender objects inside it and fires a bool event when any matches a correct value. A puzzle part; the correct values are saved.
Constructors
Fields
4 private and internal fields
| Member | What it is |
|---|
private int[] correctIndex | Values that count as correct. Saved and loaded through AreaOfInfluenceReceiverData. |
private bool isCorrect | Result of the last check. |
private BoolUnityEvent onValueCheck | Event fired with the result after every check. |
private List<LogicIntSender> sendersInCollider | Senders currently inside the trigger. |
Methods
5 private and internal methods
| Member | What it is |
|---|
private void Awake() | Runs the first check. |
private void CheckIfCorrect() | Sets isCorrect if any sender inside has a value in correctIndex, then fires onValueCheck. |
private void OnTriggerEnter(Collider other) | Adds an entering sender's LogicIntSender to the list and rechecks. |
private void OnTriggerExit(Collider other) | Removes a leaving sender and rechecks. |
private void RemoveFromList(LogicIntSender sender) | Removes a sender from sendersInCollider. |