Skip to content
This repository has been 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

Open
ErikOverflow opened this issue Apr 22, 2019 · 0 comments

Comments

@ErikOverflow
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant