Add this class to a collider (2D or 3D) and it'll let you trigger things after a duration, like a mine would. It also comes with options to interrupt or reset the timer on exit.
More...
|
virtual void | Initialization () |
| On init we initialize our feedbacks and duration More...
|
|
virtual void | TriggerMine () |
| Describes what happens when the mine explodes More...
|
|
virtual void | OnTriggerStay2D (Collider2D collider) |
| When a collision with the player is triggered, we give damage to the player and knock it back More...
|
|
virtual void | OnTriggerEnter2D (Collider2D collider) |
| On trigger enter 2D, we call our colliding endpoint More...
|
|
virtual void | OnTriggerExit2D (Collider2D collider) |
| On trigger enter 2D, we call our colliding endpoint More...
|
|
|
virtual void | Start () |
| On Start we initialize our mine More...
|
|
void | OnEnable () |
|
virtual void | Colliding (GameObject collider) |
| When colliding, we start our timer if needed More...
|
|
virtual void | Exiting (GameObject collider) |
| When exiting, we stop our timer if needed More...
|
|
virtual void | Update () |
| On Update if a target is inside the zone, we update our timer More...
|
|
Add this class to a collider (2D or 3D) and it'll let you trigger things after a duration, like a mine would. It also comes with options to interrupt or reset the timer on exit.
◆ Colliding()
virtual void MoreMountains.CorgiEngine.ProximityMine.Colliding |
( |
GameObject |
collider | ) |
|
|
protectedvirtual |
When colliding, we start our timer if needed
- Parameters
-
◆ Exiting()
virtual void MoreMountains.CorgiEngine.ProximityMine.Exiting |
( |
GameObject |
collider | ) |
|
|
protectedvirtual |
When exiting, we stop our timer if needed
- Parameters
-
◆ Initialization()
virtual void MoreMountains.CorgiEngine.ProximityMine.Initialization |
( |
| ) |
|
|
virtual |
On init we initialize our feedbacks and duration
◆ OnEnable()
void MoreMountains.CorgiEngine.ProximityMine.OnEnable |
( |
| ) |
|
|
protected |
◆ OnTriggerEnter2D()
virtual void MoreMountains.CorgiEngine.ProximityMine.OnTriggerEnter2D |
( |
Collider2D |
collider | ) |
|
|
virtual |
On trigger enter 2D, we call our colliding endpoint
- Parameters
-
S
◆ OnTriggerExit2D()
virtual void MoreMountains.CorgiEngine.ProximityMine.OnTriggerExit2D |
( |
Collider2D |
collider | ) |
|
|
virtual |
On trigger enter 2D, we call our colliding endpoint
- Parameters
-
S
◆ OnTriggerStay2D()
virtual void MoreMountains.CorgiEngine.ProximityMine.OnTriggerStay2D |
( |
Collider2D |
collider | ) |
|
|
virtual |
When a collision with the player is triggered, we give damage to the player and knock it back
- Parameters
-
collider | what's colliding with the object. |
◆ Start()
virtual void MoreMountains.CorgiEngine.ProximityMine.Start |
( |
| ) |
|
|
protectedvirtual |
On Start we initialize our mine
◆ TriggerMine()
virtual void MoreMountains.CorgiEngine.ProximityMine.TriggerMine |
( |
| ) |
|
|
virtual |
Describes what happens when the mine explodes
◆ Update()
virtual void MoreMountains.CorgiEngine.ProximityMine.Update |
( |
| ) |
|
|
protectedvirtual |
On Update if a target is inside the zone, we update our timer
◆ _autoRespawn
AutoRespawn MoreMountains.CorgiEngine.ProximityMine._autoRespawn |
|
protected |
◆ _canExplode
bool MoreMountains.CorgiEngine.ProximityMine._canExplode = true |
|
protected |
◆ _collider
Collider2D MoreMountains.CorgiEngine.ProximityMine._collider |
|
protected |
◆ _inside
bool MoreMountains.CorgiEngine.ProximityMine._inside = false |
|
protected |
◆ DisableMineOnTrigger
bool MoreMountains.CorgiEngine.ProximityMine.DisableMineOnTrigger = true |
whether or not to disable the mine when it triggers/explodes
◆ OnMineTriggerFeedbacks
MMFeedbacks MoreMountains.CorgiEngine.ProximityMine.OnMineTriggerFeedbacks |
a feedback to play when the mine triggers
◆ OnWarningResetFeedbacks
MMFeedbacks MoreMountains.CorgiEngine.ProximityMine.OnWarningResetFeedbacks |
a feedback to play when the warning phase is reset
◆ OnWarningStartsFeedbacks
MMFeedbacks MoreMountains.CorgiEngine.ProximityMine.OnWarningStartsFeedbacks |
the feedback to play when the warning phase starts
◆ OnWarningStopsFeedbacks
MMFeedbacks MoreMountains.CorgiEngine.ProximityMine.OnWarningStopsFeedbacks |
a feedback to play when the warning phase stops
◆ TargetLayerMask
LayerMask MoreMountains.CorgiEngine.ProximityMine.TargetLayerMask |
the layers that will trigger this mine
◆ TimeLeftBeforeTrigger
float MoreMountains.CorgiEngine.ProximityMine.TimeLeftBeforeTrigger |
a read only display of the current duration before explosion
◆ WarningDuration
float MoreMountains.CorgiEngine.ProximityMine.WarningDuration = 2f |
the duration of the warning phase, in seconds, betfore the mine triggers
◆ WarningDurationResetsOnExit
bool MoreMountains.CorgiEngine.ProximityMine.WarningDurationResetsOnExit = false |
whether or not the warning duration should reset when exiting the zone
◆ WarningStopsOnExit
bool MoreMountains.CorgiEngine.ProximityMine.WarningStopsOnExit = false |
whether or not the warning should stop when exiting the zone
The documentation for this class was generated from the following file: