Exemplo n.º 1
0
 private void OnTriggerExit2D(Collider2D other)
 {
     if (other.CompareTag("Player"))
     {
         ActalPortalUnderPlayer = null;
         mapTraduction.OfficialLanguageReference = "Map";
         PlayerIsInside = false;
     }
 }
Exemplo n.º 2
0
 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");
 }