public void PlayerHitCheck() { playerHitTimer += Time.deltaTime; if (enemyHitPlayer == enemyDamageHits) { if (playerHitTimer >= 15.0f) { playerHitTimer = 0.0f; Debug.Log("RB S3: Increase enemy amount and speed"); multiplier.TimerUpdateEnemySpeed(0.1f); } } else { playerHitTimer = 0.0f; enemyHitPlayer = enemyDamageHits; } }