I write all the control(movement,fire) in PlayerController.
The question is when the player die while I’m not stopping control. After exit Gameplay It will generate a lot of warning/error remind me of the reference of controlled player doesn’t exist.
I try to make a Player State to indicate is player alive,and if not cut all the input event.
It works,but not perfectly cause it still will generate one warning/error sometime when I make some input at the time the player die.
How to radically solve the issue?
My thanks.