Exemplo n.º 1
0
    private void Update()
    {
        if (countdown > 0)
        {
            countdown -= Time.deltaTime;
        }
        else
        {
            selectLvlCanvas.SetActive(true);
            EventSystem.current.SetSelectedGameObject(selectLevel);
            gameObject.SetActive(false);
        }

        for (int i = 0; i < allInputs.Length; i++)
        {
            input = allInputs[i];
            if (input.StartButtonPress() && !inputsPressed[i])
            {
                inputsPressed[i] = true;
                playerImages[i].SetActive(true);
                GameManager.Singleton.AddCantPlayers(1);
            }
        }
    }