if i now disconnect the first 2 gamepads it looks like this:
[0] empty
[1] empty
[2] gamepad3
[3] gamepad4
i know, this behaviour is on purpose so that the player slots are not switched on a disconnect,
but what i want is that the gaps will be closed, gamepad3 becomes player1 and so on…
[0] gamepad3
[1] gamepad4
the only workaround i know is to close and reopen the editor or build.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharPlacer : MonoBehaviour
{
public GameObject[] chars;
public Transform[] startPosses;
// Use this for initialization
void Start()
{
int playerSetback = 0;
for (int i = 0; i < Input.GetJoystickNames().Length; i++)
{
if (Input.GetJoystickNames() *== "")*