void CollideWithEnemy() { /***Checks for Enemy Collision***/ timer -= Time.deltaTime; isEnemy = Physics.CheckSphere(colliderChecker.position, colliderDistance, enemyMask); if (isEnemy && timer <= 0) { wasHit = true; inGameUIController.TookEnemyHit(); if (currHealth > 1) { StartCoroutine(lookController.CameraShake(.20f, .4f)); } InputManager.instance.player.SetVibration(motorIndex, motorLevel, duration); timer = 3f; UpdateHealth(); } if (timer <= 0) { inGameUIController.RestoreOrigColor(); } }