private void OnMouseUpAsButton() { if (mapConfig == null) { mapConfig = FindObjectOfType <MapConfig>(); } if (!shroud && !mapConfig.GetIsAMenuOpen()) { if (playerPresent) { mapConfig.SetIsAMenuOpen(true); FindObjectOfType <MapSFX>().PlayMapSoundSFX(MapSFX.MapSoundEffect.MapSquarePress); CurrentNodeMenu menu = mapConfig.GetCurrentNodeMenu(); menu.InitializeMenu(this); } else { mapConfig.SetIsAMenuOpen(true); FindObjectOfType <MapSFX>().PlayMapSoundSFX(MapSFX.MapSoundEffect.MapSquarePress); NeighboringNodeMenu menu = mapConfig.GetNeighboringNodeMenu(); menu.InitializeMenu(this); } } }