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(); } }
public void AddButton(ButtonInList _button) { button = _button; button.product = this; }