Exemplo n.º 1
0
    public void OnClick()
    {
        if (isDisable)
        {
            return;
        }

        button = GetComponent <Button>();
        image  = GetComponent <Image>();

        if (!isDisable && Recipient.GetMessage(gameObject))
        {
            if (SelectedButton != null)
            {
                SelectedButton.UnSelect();
            }
            SelectedButton = this;

            Select();
        }
    }
Exemplo n.º 2
0
 public void AddButton(ButtonInList _button)
 {
     button         = _button;
     button.product = this;
 }