- Learning C# 7 By Developing Games with Unity 2017(Third Edition)
- Micael DaGra?a Greg Lukosek
- 170字
- 2021-07-02 19:59:37
Click Play!
Quite an exciting moment! Go back from MonoDevelop to Unity and click the Play button. Unity should print out two lines on the Console tab, looking like this:

Unity executed the code in the variableScript component on the GameObject just after you clicked Play. We can see two lines printed on the Console window. We wrote a piece of code asking Unity to print these two values the Console window. Let's look again at lines 11 and 13. Everything inside the brackets in the Debug.Log function will be printed to the Unity Console. It can be a number, text, or even an equation:

So, line 11 is asking, "Hey Unity, print the result of 2 + 9 on the console!" Line 14 is using the myNumber variable's value directly and adding it to the number 11.
Thus, the point of this exercise is to demonstrate that you can store and use whatever values you want using variables, and use their names directly to perform operations.
- Python編程自學手冊
- 案例式C語言程序設計
- Python從小白到大牛
- React.js Essentials
- C語言程序設計案例式教程
- Mastering RStudio:Develop,Communicate,and Collaborate with R
- Python深度學習:基于TensorFlow
- 持續輕量級Java EE開發:編寫可測試的代碼
- Java SE實踐教程
- 邊玩邊學Scratch3.0少兒趣味編程
- Practical Predictive Analytics
- 大學計算機應用基礎(Windows 7+Office 2010)(IC3)
- Functional Python Programming
- 從零開始學Python大數據與量化交易
- Flink入門與實戰