void CheckPlayerJoin() { if (InputManager.Player1.APress) { if (p1joined) { p1Ready = true; UpdateVisuals(1); } else { GlobalGameManager.AddNewPlayer(1); p1joined = true; UpdateVisuals(1); } } if (InputManager.Player2.APress) { if (p2joined) { p2Ready = true; UpdateVisuals(2); } else { GlobalGameManager.AddNewPlayer(2); p2joined = true; UpdateVisuals(2); } } if (InputManager.Player3.APress) { if (p3joined) { p3Ready = true; UpdateVisuals(3); } else { GlobalGameManager.AddNewPlayer(3); p3joined = true; UpdateVisuals(3); } } if (InputManager.Player4.APress) { if (p4joined) { p4Ready = true; UpdateVisuals(4); } else { GlobalGameManager.AddNewPlayer(4); p4joined = true; UpdateVisuals(4); } } }