Unity and Flutter apps Home Page
Work to create apps for generating revenue
Loading...
Searching...
No Matches
Collision.DeathCollisionAction Class Reference

Details the action to be taken when a collision occurs with the target. In this class the target is killed when it hits the collider The strength of the death is not relevant in this case. More...

Inheritance diagram for Collision.DeathCollisionAction:
Collision.ICollisionAction

Public Member Functions

void DoCollisionAction (CollisionActionController controller, CollisionEffectStrengthEnum collisionEffectStrengthEnum)
 This action interacts directly with the GameResetManager tp reduce a life if the player hits the collider.
void DoCollisionAreaExitAction (CollisionActionController controller, CollisionEffectStrengthEnum collisionEffectStrengthEnum)
 This will not be relevant as the game manager will take over killing the player.

Detailed Description

Details the action to be taken when a collision occurs with the target. In this class the target is killed when it hits the collider The strength of the death is not relevant in this case.

Each action type can be set against the collider object by adding the CollectionActionController to the collider object and setting the action name

Member Function Documentation

◆ DoCollisionAction()

void Collision.DeathCollisionAction.DoCollisionAction ( CollisionActionController controller,
CollisionEffectStrengthEnum collisionEffectStrengthEnum )

This action interacts directly with the GameResetManager tp reduce a life if the player hits the collider.

Parameters
controller
collisionEffectStrengthEnum

Implements Collision.ICollisionAction.

◆ DoCollisionAreaExitAction()

void Collision.DeathCollisionAction.DoCollisionAreaExitAction ( CollisionActionController controller,
CollisionEffectStrengthEnum collisionEffectStrengthEnum )

This will not be relevant as the game manager will take over killing the player.

Parameters
controller
collisionEffectStrengthEnum

Implements Collision.ICollisionAction.


The documentation for this class was generated from the following file: