Пример #1
0
 void HideMenu(RectTransform menu)
 {
     menu.anchoredPosition = new Vector2(menu.anchoredPosition.x, hiddenPos);
     if (onNavbarMenuToggle != null)
     {
         onNavbarMenuToggle(menu.name, false);
     }
     if (currentMenu.name == "Build Menu")
     {
         buildableAreaManager.SetRecipe(null);
     }
 }
 public void OnClick()
 {
     buildableAreaManager.SetRecipe(recipe);
 }