Unity and Flutter apps Home Page
Work to create apps for generating revenue
|
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...
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. |
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
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.
controller | |
collisionEffectStrengthEnum |
Implements Collision.ICollisionAction.
void Collision.DeathCollisionAction.DoCollisionAreaExitAction | ( | CollisionActionController | controller, |
CollisionEffectStrengthEnum | collisionEffectStrengthEnum ) |
This will not be relevant as the game manager will take over killing the player.
controller | |
collisionEffectStrengthEnum |
Implements Collision.ICollisionAction.