- Unity Game Development Scripting
- Kyle D'Aoust
- 131字
- 2021-08-05 16:52:50
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.
推薦閱讀
- Python量化投資指南:基礎、數據與實戰
- 小創客玩轉圖形化編程
- 大學計算機基礎實驗教程
- 垃圾回收的算法與實現
- Rust編程從入門到實戰
- TestNG Beginner's Guide
- Raspberry Pi for Secret Agents(Third Edition)
- 網頁設計與制作教程(HTML+CSS+JavaScript)(第2版)
- JavaScript前端開發與實例教程(微課視頻版)
- Visual C
- Visual C++應用開發
- Learning SciPy for Numerical and Scientific Computing(Second Edition)
- Python Essentials
- Node.js 12實戰
- Shopify Application Development