Beispiel #1
0
    public void StartRound()
    {
        if (currentState != GameState.INPROGRESS)
        {
            Debug.Log("[GameManager] Starting round " + currentRound.ToString());

            currentState  = GameState.INPROGRESS;
            timeRemaining = roundTimer;
            shopCanvas.gameObject.SetActive(false);
            currentHeat = 0f;

            spawnSystem.StartSpawning();
            StartCoroutine(CooldownHeat());

            if (Inventory.HasBoots)
            {
                player.moveSpeedMultiplier = moveSpeedMultiplier;
            }
            if (Inventory.HasGloves)
            {
                player.stealDelayMultiplier = stealDelayMultiplier;
            }
            if (Inventory.HasGuide)
            {
                player.stealAmountMultiplier = stealAmountMultiplier;
            }
            if (Inventory.HasHoodie)
            {
                player.hideTimeMultiplier = hideTimeMultiplier;
            }
        }
    }