public void OnInputClicked(InputClickedEventData eventData) { /*string quadrantName = transform.parent.parent.parent.name + transform.parent.name ; * menuController.HandleQuadrantSelection(quadrantName);*/ if (isOutSliceON && menuController.currentButton != null) { animator.SetBool("b_isClicked", true); radarController.setquadrantName(transform.parent.parent.parent.parent.name); contentToPrint = radarController.getquadrantName() + this.gameObject.name; menuController.PrintContent(contentToPrint); //Used to store which button was selected radarController.SliceSelect(contentToPrint); } //Removes the "Clicked State" when you click another Slice if (radarController.getCurrentSlice() != contentToPrint) { animator.SetBool("b_isClicked", false); } }
//Manages animation on Update private void Update() { if (OutSliceController.isOutSliceON || CenterSliceController.isCenterSliceON || isWhiteSliceOn || radarController.getquadrantName() == transform.parent.name) { Anim.SetBool("b_highlightWhite", true); } else { Anim.SetBool("b_highlightWhite", false); } }