Exemplo n.º 1
0
 public void CloseMenu()
 {
     AttachedBuilding.HideRangeObject();
     AttachedBuilding.StopHighlighting();
     AttachedBuilding.MenuOpen = false;
     _uiManager.DestroyTowerMenuCloser();
 }
 private void CloseMenu(MageAssignableBuilding building)
 {
     UIManager.DestroyTowerMenuCloser();
     OpenMenu.AttachedBuilding.HideRangeObject();
     OpenMenu.AttachedBuilding.StopHighlighting();
     building.MenuOpen = false;
     building.Menu     = null;
     OpenMenu          = null;
     building.InsideMage.Data.ProfileButton.GetComponent <Toggle>().isOn = false;
 }