官术网_书友最值得收藏!

Housing our control script

Now that we have our control inputs set up, we'll set up our script that will house all our control-based scripting.

Creating and naming the script

Create a new script either by right-clicking on Project Window, hovering over the Create tab, and clicking on the C# script, or by navigating through the Assets menu and creating the new C# script this way. Once you have done this, rename the script ControlConfig.

Formatting the script

After you have created and named the script, open it. Ensure that the class name, ControlConfig, is the same as the filename. You'll see that Unity has created the start and update functions for use already. You should delete both of these functions, which will leave you with an open and empty class.

主站蜘蛛池模板: 五家渠市| 黄陵县| 抚宁县| 德江县| 海门市| 美姑县| 启东市| 正宁县| 霍林郭勒市| 凤翔县| 东阿县| 麻阳| 五原县| 永修县| 雷山县| 卓资县| 育儿| 辛集市| 晋中市| 临城县| 开阳县| 丹棱县| 资阳市| 常宁市| 崇阳县| 东台市| 中超| 遵化市| 股票| 凤庆县| 偃师市| 馆陶县| 潮州市| 如皋市| 韩城市| 乐东| 长垣县| 梁河县| 塔河县| 大邑县| 馆陶县|