Ejemplo n.º 1
0
    private void OnTableButtonClicked(TableButton tableButton)
    {
        //Highlight only the clicked button
        buttons.ForEach(button => { button.Toggle(true); });

        tableButton.Toggle(false);
    }
Ejemplo n.º 2
0
 private void Awake()
 {
     buttons = new List <TableButton>
     {
         centerButton
     };
     centerButton.Button.onClick.AddListener(MoveCameraToCenter);
     centerButton.Button.onClick.AddListener(() => { OnTableButtonClicked(centerButton); });
     //Make the centerButton the "highlighted" one
     centerButton.Toggle(false);
 }