A stun zone will stun any character with a CharacterStun ability entering it
More...
|
virtual void | OnTriggerEnter2D (Collider2D collider) |
| When a collision with the player is triggered, we give damage to the player and knock it back More...
|
|
virtual void | OnTriggerEnter (Collider collider) |
| On trigger stay, we call our colliding endpoint More...
|
|
|
virtual void | Colliding (GameObject collider) |
| When colliding with a gameobject, we make sure it's a target, and if yes, we stun it More...
|
|
A stun zone will stun any character with a CharacterStun ability entering it
◆ StunModes
the possible stun modes : Forever : stuns until StunExit is called on the CharacterStun component, ForDuration : stuns for a duration, and then the character will exit stun on its own
Enumerator |
---|
Forever | |
ForDuration | |
◆ Colliding()
virtual void MoreMountains.TopDownEngine.StunZone.Colliding |
( |
GameObject |
collider | ) |
|
|
protectedvirtual |
When colliding with a gameobject, we make sure it's a target, and if yes, we stun it
- Parameters
-
◆ OnTriggerEnter()
virtual void MoreMountains.TopDownEngine.StunZone.OnTriggerEnter |
( |
Collider |
collider | ) |
|
|
virtual |
On trigger stay, we call our colliding endpoint
- Parameters
-
On trigger enter, we call our colliding endpoint
- Parameters
-
◆ OnTriggerEnter2D()
virtual void MoreMountains.TopDownEngine.StunZone.OnTriggerEnter2D |
( |
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. |
On trigger enter 2D, we call our colliding endpoint
- Parameters
-
S
◆ _character
Character MoreMountains.TopDownEngine.StunZone._character |
|
protected |
◆ _characterStun
CharacterStun MoreMountains.TopDownEngine.StunZone._characterStun |
|
protected |
◆ DisableZoneOnStun
bool MoreMountains.TopDownEngine.StunZone.DisableZoneOnStun = true |
whether or not to disable the zone after the stun has happened
◆ StunDuration
float MoreMountains.TopDownEngine.StunZone.StunDuration = 2f |
if in ForDuration mode, the duration of the stun in seconds
◆ StunMode
the chosen stun mode (Forever : stuns until StunExit is called on the CharacterStun component, ForDuration : stuns for a duration, and then the character will exit stun on its own)
◆ TargetLayerMask
LayerMask MoreMountains.TopDownEngine.StunZone.TargetLayerMask |
The documentation for this class was generated from the following file:
- F:/Github/Store/TopDownEngine/Assets/TopDownEngine/Common/Scripts/Characters/Weapons/StunZone.cs