第六节 添加主屏幕对象
2019-06-18 本文已影响0人
安静的程序员
有了导演之后,还需要添加让导演驱动的对象,先来添加一个主屏幕对象。
01.添加空物体
在场景中新建一个空物体,坐标归零,重命名为:ScreenMain。

02.添加脚本
在Script文件夹中添加C# Script,重命名为:ScreenMain。

03.附加脚本至主屏幕对象
将脚本ScreenMain拖动至场景中的主屏幕对象上。
代码下载:https://pan.baidu.com/s/1nVk6dalH-M37I4RRoc1pOA
提取码:dew3