private void OnTriggerEnter2D(Collider2D other) { if (other.CompareTag("Friend")) { changeManager.RestoreHealth(); } else if (other.CompareTag("Hurt")) { SoudManager.instance.Play("Hurt"); Die(); } else if (other.CompareTag("Portal")) { LevelLoader.instance.LoadNextLevel(1f); SoudManager.instance.Play("Succed"); Destroy(other); } }