- Learning C# by Developing Games with Unity 3D Beginner's Guide
- Terry Norton
- 123字
- 2021-08-04 10:04:04
Summary
In this chapter, we learned that a method definition ends with a code block between two curly braces, not with a semicolon. The parentheses are part of a method's name. We also learned how to call a method into action, how to use data returned from a method, and that Unity calls some methods automatically, such as the Start()
and Update()
methods, when the script inherits from the MonoBehaviour
class.
You now know the two major building blocks of scripting, variables and methods. From now on, everything else you do will just be making use of variables and methods. Now that you understand these two building blocks, you are ready for the next chapter that deals with making decisions in your code.
推薦閱讀
- 大學計算機基礎(第二版)
- Vue.js設計與實現
- 基于粒計算模型的圖像處理
- WebAssembly實戰
- Unity Virtual Reality Projects
- Java Web及其框架技術
- Mastering Unity 2D Game Development(Second Edition)
- 持續輕量級Java EE開發:編寫可測試的代碼
- Learning iOS Security
- Hadoop大數據分析技術
- Python 3快速入門與實戰
- Laravel Design Patterns and Best Practices
- Spark技術內幕:深入解析Spark內核架構設計與實現原理
- HTML5 Game Development by Example:Beginner's Guide(Second Edition)
- Go Programming Cookbook(Second Edition)