Skip to content
This repository was archived by the owner on Aug 14, 2019. It is now read-only.
This repository was archived by the owner on Aug 14, 2019. It is now read-only.

Move the DisableInput functionality out of the PlayerMovementController and into a PlayerDeathHandler #56

@ErikOverflow

Description

@ErikOverflow

Is your feature request related to a problem? Please describe.
The PlayerMovementController has a dependency on CharacterHealth so that it can disable itself. If we continue to follow this pattern, this leaves "Death Handling" to each script themselves. Sooner than later "Death Handling" will sprawl across multiple scripts and updating or understanding what happens on death will become less manageable.

Describe the solution you'd like
A second script whose job is explicitly "Death Handling" should be implemented to disable or deactivate gameObjects and scripts that should be affected by death, keeping all of the results of a death in one script (singularly responsible). This has the added benefit of decoupling the PMC's dependency on CharacterHeatlh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions