- NGUI for Unity
- Charles Bernardoff
- 195字
- 2021-07-19 18:32:31
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "Declare a new Difficulty
variable to store current difficulty."
A block of code is set as follows:
public void OnDifficultyChange() { //If Difficulty changes to Normal, set Difficulties.Normal if(UIPopupList.current.value == "Normal") Difficulty = Difficulties.Normal; //Otherwise, set it to Hard else Difficulty = Difficulties.Hard; }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
//We will need the Slider
UISlider slider;
void Awake ()
{
//Get the Slider
slider = GetComponent<UISlider>();
//Set the Slider's value to last saved volume
slider.value = NGUITools.soundVolume;
}
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "You can now click on the Create Your UI button."
推薦閱讀
- JSP網(wǎng)絡(luò)編程(學(xué)習(xí)筆記)
- Vue.js 3.x從入門到精通(視頻教學(xué)版)
- Mastering Entity Framework
- Mastering Julia
- Python GUI Programming Cookbook
- Python高效開發(fā)實(shí)戰(zhàn):Django、Tornado、Flask、Twisted(第3版)
- JavaScript+Vue+React全程實(shí)例
- C語言程序設(shè)計(jì)
- 數(shù)據(jù)結(jié)構(gòu)案例教程(C/C++版)
- SQL基礎(chǔ)教程(第2版)
- Mastering React
- Swift 4從零到精通iOS開發(fā)
- AutoCAD 2009實(shí)訓(xùn)指導(dǎo)
- Getting Started with Hazelcast
- Mastering High Performance with Kotlin