public void OpenMenu() { if (MenuMenu.activeSelf) { MenuMenu.SetActive(false); OptionsMenu.SetActive(false); } else { MenuMenu.SetActive(true); } }
// Use this for initialization void Start() { InfluenceMenu.SetActive(false); MenuMenu.SetActive(false); OptionsMenu.SetActive(false); isgather = false; iswar = false; istech = false; war.GetComponent <Image>().color = Color.red; gather.GetComponent <Image>().color = Color.red; tech.GetComponent <Image>().color = Color.red; //gather.GetComponent<Image>().color = Color.green; //isgather = true; // this.gameObject.GetComponent<Priority>().BuildPriority(); }
private void ScrollViewer_ScrollChanged(object sender, ScrollChangedEventArgs e) { MenuMenu.ScrollIntoView(MenuMenu.Items[0]); //scroll to top }