//按钮点击 public void OnButtonClick(int type) { //灭活被点击按钮 Buttons[type].SetActive(false); action.ButtonDown(type); //额外处理工作 switch (type) { case 0: Checkmark.SetActive(true); Refresh.SetActive(true); break; case 1: Checkmark.SetActive(false); Refresh.SetActive(false); break; case 2: //开始游戏 GameStart = true; //激活退出按钮与技能槽 Game.SetActive(true); Buttons[3].SetActive(true); break; } }