Exemple #1
0
    // Update is called once per frame
    void LateUpdate()
    {
        players = game.GetPlayers();

        Zoom();
        Move();
    }
Exemple #2
0
    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);
        }
    }