// Update is called once per frame void LateUpdate() { players = game.GetPlayers(); Zoom(); Move(); }
private void GetStart() { if (numJoined >= 2 && numReady == numJoined) { startGame.SetActive(true);; if (Input.GetKeyDown("joystick button 7")) { SceneManager.LoadSceneAsync("Coop"); } game.SetPlayerPrefab(setPrefab, numReady); if (game.GetPlayers() != null) { Destroy(mainMenu); } } else { startGame.SetActive(false); } }