时间:2024-10-28 05:54:26
1、我们创建一个Button按钮,创建脚本sss,将脚本挂载到Button身上
2、将脚本打开,引入命名空间编写代码。
3、点击Button,添加事件.
4、运行场景,当我点击Button时,自动退出。