private void OnTriggerExit2D(Collider2D other) { if (other.CompareTag("Player")) { ActalPortalUnderPlayer = null; mapTraduction.OfficialLanguageReference = "Map"; PlayerIsInside = false; } }
private void OnTriggerEnter2D(Collider2D collision) { if (collision.CompareTag("Player")) { ActalPortalUnderPlayer = this; PlayerIsInside = true; mapTraduction.OfficialLanguageReference = screenName; } GameObject.FindGameObjectWithTag("SoundUtility").GetComponent <SoundListUtility>().PlayElementByName("onclick_menu_sound"); }