Detailed Description
Add and remove a fault to thrusters that colides into or triggers this GO.
It is a component designed for 2D and 3D space, it implements all Collision* and Trigger* MonoBehaviour functions.
Member Data Documentation
◆ addOnCollisionEnter
bool BArtisan.Thrusters.Helpers.Faults.BThrusterHelperFaultCollision.addOnCollisionEnter = true |
Add the fault to all engines from the collider GO. See OnCollisionEnter in Unity docs for more info.
◆ addOnTriggerEnter
bool BArtisan.Thrusters.Helpers.Faults.BThrusterHelperFaultCollision.addOnTriggerEnter = true |
Add the fault to all thrusters from the triggered GO. See OnTriggerEnter in Unity docs for more info.
◆ removeOnCollisionExit
bool BArtisan.Thrusters.Helpers.Faults.BThrusterHelperFaultCollision.removeOnCollisionExit = false |
Remove the fault to all thrusters from the collider GO. See OnCollisionExit in Unity docs for more info.
◆ removeOnTriggerExit
bool BArtisan.Thrusters.Helpers.Faults.BThrusterHelperFaultCollision.removeOnTriggerExit = false |
Remove the fault to all thrusters from the triggered GO. See OnTriggerExit in Unity docs for more info.
◆ searchInColliderChildren
bool BArtisan.Thrusters.Helpers.Faults.BThrusterHelperFaultCollision.searchInColliderChildren = true |
Search for thrusters in the collider GO children too, less optimal.
◆ uniqueProblemID
|
inherited |
Each fault in your game must have an unique ID, so it can easily be identified.
◆ autoremoveAfterSeconds
|
inherited |
Automatically remove the fault after it was added. Ex: 3 for 3 seconds.
◆ debugLog
|
inherited |
Enable to debug this component. Warning: it may result in CPU intensive debug messages (each frame).
Member Function Documentation
◆ AddFaultTo()
|
virtual |
Add this fault to the thruster(s).
- Parameters
-
go thruster(s) parent
◆ RemoveFaultTo()
|
virtual |
Remove this fault from the thruster(s).
- Parameters
-
go thruster(s) parent
◆ AddFault()
|
inherited |
◆ RemoveFault()
|
inherited |