Unity 多個button,一次只能點一個

請問當有多個按鈕,點擊第一個button時換button的sprite,再來點擊另一個時也換button的sprite,然後同時第一個按鈕會恢復原來的button的sprite,程式碼要如何更改?!图片说明

点击变换功能:
我觉得直接改成点击button时,原来是UP的直接变成Down,Down的变成UP
if (mybutton.image.overrideSprite == UP)
mybutton.image.overrideSprite = Down;
else
mybutton.image.overrideSprite = UP;

点击第二个按钮,变换第一个按钮功能:
需要在脚本上能放另一个button(public Button anotherButton;),再给这个anotherButton做同样的判断和操作