コード例 #1
0
    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);
        }
    }
コード例 #2
0
 public void ResetAllSlices()
 {
     isWhiteSliceOn = false;
     Anim.SetBool("b_highlightWhite", false);
     radarController.setquadrantName("Resetando");
 }