Add this to a character and it'll trigger its MMRagdoller to ragdoll on death.
More...
|
| virtual void | Start () |
| | On Awake we initialize our component.
|
| virtual void | Initialization () |
| | Grabs our health and controller.
|
| virtual void | GrabHealth () |
| virtual void | OnDeath () |
| | When we get a OnDeath event, we ragdoll.
|
| virtual void | OnRevive () |
| virtual void | Ragdoll () |
| | Disables the specified objects and monos and triggers the ragdoll.
|
| virtual void | OnDestroy () |
| | OnDestroy we stop listening to OnDeath events.
|
Add this to a character and it'll trigger its MMRagdoller to ragdoll on death.
◆ GrabHealth()
| virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.GrabHealth |
( |
| ) |
|
|
protectedvirtual |
◆ Initialization()
| virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.Initialization |
( |
| ) |
|
|
protectedvirtual |
Grabs our health and controller.
◆ OnDeath()
| virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.OnDeath |
( |
| ) |
|
|
protectedvirtual |
When we get a OnDeath event, we ragdoll.
◆ OnDestroy()
| virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.OnDestroy |
( |
| ) |
|
|
protectedvirtual |
OnDestroy we stop listening to OnDeath events.
◆ OnRevive()
| virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.OnRevive |
( |
| ) |
|
|
protectedvirtual |
◆ Ragdoll()
| virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.Ragdoll |
( |
| ) |
|
|
protectedvirtual |
Disables the specified objects and monos and triggers the ragdoll.
◆ ResetRagdoll()
| virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.ResetRagdoll |
( |
| ) |
|
|
virtual |
◆ Start()
| virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.Start |
( |
| ) |
|
|
protectedvirtual |
On Awake we initialize our component.
◆ _character
| Character MoreMountains.TopDownEngine.CharacterRagdollOnDeath._character |
|
protected |
◆ _controller
◆ _health
| Health MoreMountains.TopDownEngine.CharacterRagdollOnDeath._health |
|
protected |
◆ _initialParent
| Transform MoreMountains.TopDownEngine.CharacterRagdollOnDeath._initialParent |
|
protected |
◆ _initialPosition
| Vector3 MoreMountains.TopDownEngine.CharacterRagdollOnDeath._initialPosition |
|
protected |
◆ _initialRotation
| Quaternion MoreMountains.TopDownEngine.CharacterRagdollOnDeath._initialRotation |
|
protected |
◆ ForceMultiplier
| float MoreMountains.TopDownEngine.CharacterRagdollOnDeath.ForceMultiplier = 10000f |
the force by which the impact will be multiplied
◆ MonosToDisableOnDeath
| List<MonoBehaviour> MoreMountains.TopDownEngine.CharacterRagdollOnDeath.MonosToDisableOnDeath |
A list of optional monos to disable on death.
◆ ObjectsToDisableOnDeath
| List<GameObject> MoreMountains.TopDownEngine.CharacterRagdollOnDeath.ObjectsToDisableOnDeath |
A list of optional objects to disable on death.
◆ RagdollButton
| bool MoreMountains.TopDownEngine.CharacterRagdollOnDeath.RagdollButton |
A test button to trigger the ragdoll from the inspector.
◆ Ragdoller
| MMRagdoller MoreMountains.TopDownEngine.CharacterRagdollOnDeath.Ragdoller |
◆ ResetRagdollButton
| bool MoreMountains.TopDownEngine.CharacterRagdollOnDeath.ResetRagdollButton |
A test button to reset the ragdoll from the inspector.
The documentation for this class was generated from the following file: