按钮触发事件实现步骤 定义按钮实现脚本方法(要让按钮执行函数一定是public公开的) 给按钮挂载box collider和ui button 添加gameStart object挂载gameStart脚本 ui button中的on click放入game start对象并设置方法