A class you can put on objects to trigger events when they get hit (whether that hit applied damage or not). Useful for switches and the likes.
More...
|
virtual void | Start () |
| On Start we grab our Health component More...
|
|
virtual void | OnHit () |
| When we get hit with actual damage, we trigger the ActionOnHit UnityEvent More...
|
|
virtual void | OnHitZero () |
| When we get hit with zero damage, we trigger the ActionOnHitZero UnityEvent More...
|
|
virtual void | OnEnable () |
| On enable, we grab our health and register to our hit delegates More...
|
|
virtual void | OnDisable () |
| On disable, we unbind our hit delegates More...
|
|
A class you can put on objects to trigger events when they get hit (whether that hit applied damage or not). Useful for switches and the likes.
◆ OnDisable()
virtual void MoreMountains.CorgiEngine.Hittable.OnDisable |
( |
| ) |
|
|
protectedvirtual |
On disable, we unbind our hit delegates
◆ OnEnable()
virtual void MoreMountains.CorgiEngine.Hittable.OnEnable |
( |
| ) |
|
|
protectedvirtual |
On enable, we grab our health and register to our hit delegates
◆ OnHit()
virtual void MoreMountains.CorgiEngine.Hittable.OnHit |
( |
| ) |
|
|
protectedvirtual |
When we get hit with actual damage, we trigger the ActionOnHit UnityEvent
◆ OnHitZero()
virtual void MoreMountains.CorgiEngine.Hittable.OnHitZero |
( |
| ) |
|
|
protectedvirtual |
When we get hit with zero damage, we trigger the ActionOnHitZero UnityEvent
◆ Start()
virtual void MoreMountains.CorgiEngine.Hittable.Start |
( |
| ) |
|
|
protectedvirtual |
On Start we grab our Health component
◆ _health
Health MoreMountains.CorgiEngine.Hittable._health |
|
protected |
◆ ActionOnHit
UnityEvent MoreMountains.CorgiEngine.Hittable.ActionOnHit |
an event that will get triggered when taking damage
◆ ActionOnHitZero
UnityEvent MoreMountains.CorgiEngine.Hittable.ActionOnHitZero |
an event that will get triggered when taking a hit but no damage
The documentation for this class was generated from the following file:
- Assets/CorgiEngine/Common/Scripts/Environment/Hittable.cs