- Learning C# 7 By Developing Games with Unity 2017(Third Edition)
- Micael DaGra?a Greg Lukosek
- 134字
- 2021-07-02 19:59:36
Understanding what a variable is and what it does
What is a variable? Technically, it's a tiny section of your computer's memory that will hold any information that you put there. While a game is running, it keeps track of where the information is stored, the value kept there, and the type of that value. However, for this chapter, all you need to know is how a variable works. It's very simple.
What's usually in a mailbox, besides air? Well usually there's nothing, but occasionally there is something in it. Sometimes, there are letters, bills, a spider, and so on. The point is that what is in a mailbox can vary. Therefore, let's call each mailbox a variable.
In the game development world, some simple examples of variables might be:
- playerName
- playerScore
- highestScore
推薦閱讀
- Java異步編程實戰
- 密碼學原理與Java實現
- Effective C#:改善C#代碼的50個有效方法(原書第3版)
- JavaScript語言精髓與編程實踐(第3版)
- Vue.js 3.x從入門到精通(視頻教學版)
- SQL Server 2016數據庫應用與開發
- Kotlin編程實戰:創建優雅、富于表現力和高性能的JVM與Android應用程序
- INSTANT Adobe Edge Inspect Starter
- Kubernetes源碼剖析
- Visual Basic 6.0程序設計實驗教程
- SAP HANA Starter
- ACE技術內幕:深入解析ACE架構設計與實現原理
- Delphi Cookbook
- Python大數據與機器學習實戰
- 軟件定義存儲:原理、實踐與生態