What if you play and suddenly you pull back and the wire of your controller gets unplugged? The game doesn't pause. It should.
This is often a problem with problematic controllers (I remember a ps4 one) which have a very "sensitive" wire plug.
Coding Implementation
string[] gamepadNames = Input.GetJoystickNames();
if (gamepadNames.Length == 0)
//Give warning
In case controller isnt detected normally (e.g. television controllers also count), make a class where in each Update() checks for each button, and once pressed, destroys itself.
What if you play and suddenly you pull back and the wire of your controller gets unplugged? The game doesn't pause. It should.
This is often a problem with problematic controllers (I remember a ps4 one) which have a very "sensitive" wire plug.
Coding Implementation
In case controller isnt detected normally (e.g. television controllers also count), make a class where in each
Update()
checks for each button, and once pressed, destroys itself.