private void OnCollisionEnter(Collision collision) { if (isInvicible) { return; } if (collision.gameObject.CompareTag("Enemy")) { isInvicible = true; miniGameManager.LoseHealth(); invicibleCooldown = 0; } }
private void OnCollisionEnter(Collision collision) { if (isInvicible) { return; } if (collision.gameObject.CompareTag("Enemy")) { isInvicible = true; miniGameManager.LoseHealth(); invicibleCooldown = 0; } }