Esempio n. 1
0
    void Update()
    {
        if (KeyboardInput.IsKeyDown(pauseMenuKey))
        {
            TogglePauseMenu();
            if (inventory.gameObject.activeInHierarchy)
            {
                inventory.ToggleInventory(false);
            }
        }

        currentHealth.text = "Health: " + System.Math.Ceiling(player.Health) + " / " + player.MaxHealth;
        enemeisLeft.text   = "Cheered: " + (counter.maxEnemies - counter.enemiesCount) + " / " + counter.maxEnemies;
    }