Introduction to C#
Jingtian Li, Adam Watkins, Kassandra Arevalo, Matthew Tovar · 2020
This chapter looks at how to make a machine that is blindingly fast and yet blindingly stupid do amazing things. The computing power of the computer – regardless of its specs – is faster than many ever imagined. The number of calculations being made each second on a user’s behalf are stunning, even if the user is only browsing the web. Unity is built in C++. C++ is a pain to learn and, for most coders, higher level coding languages are a much more approachable way to train a computer to do tasks. C# is the undisputed preferred language of coding for Unity, and it has generally deprecated all other previously used languages, including a variant of JavaScript and a variation of Python called Boo. C# has some rules and conventions that will help a script be easier to read, write, and work with. The chapter presents an example of empty script created in Unity and viewed in Visual Studio.