没有合适的资源?快使用搜索试试~ 我知道了~
首页Unity 5 Learning C# by Developing Games.pdf
Hello! future game developers. You are reading this course as you are probably curious person trying to learn more about a great game engine - Unity and specifically, programming in C#. Each module either pushes your skills in Unity into new areas or pushes them to the very limits of what they can be used for. This course takes a practical, project-based approach to teach you the specifics game development with the Unity 3D game engine. We walk through a series of hands-on projects and step-by-step tutorials using Unity and other free or open-source software. By the end of the course, you will be equipped to develop rich, interactive experiences using Unity.
资源详情
资源评论
资源推荐


Unity5:LearningC#byDevelopingGames

TableofContents
Unity5:LearningC#byDevelopingGames
Unity5:LearningC#byDevelopingGames
Credits
Preface
Whatthiscoursecovers
Whatyouneedforthiscourse
Whothiscourseisfor
Readerfeedback
Customersupport
Downloadingtheexamplecode
Errata
Piracy
Questions
1.Module1
1.DiscoveringYourHiddenScriptingSkillsandGettingYourEnvironmentReady
Prerequisiteknowledgetousethisbook
Dealingwithscriptphobia
DownloadingUnity
Obtainingafreelicense
TeachingbehaviortoGameObjects
UsingUnity'sdocumentation
DoIneedtoknowallthat?
C#documentation–wheretofindit?DoIneeditatall?
TheUnitycommunity–askingothersforhelp
WorkingwithC#scriptfiles
Lotsoffilescancreateamess
WhydoesmyProjecttablookdifferent?
CreatingaC#scriptfile
IntroducingtheMonoDevelopcodeeditor
SyncingC#filesbetweenMonoDevelopandUnity
OpeningLearningScriptinMonoDevelop
Thenamespace–highlightedinblue
Theclassdefinition–highlightedingreen
WatchingforpossiblegotchaswhilecreatingscriptfilesinUnity
Fixingsynchronizationifitisn'tworkingproperly
AddingourscripttoGameObject
Instance?Whatisit?
Summary
2.IntroducingtheBuildingBlocksforUnityScripts
Understandingwhatavariableisandwhatitdoes
Namingavariable

Avariablenameisjustasubstituteforavalue
Creatingavariableandseeinghowitworks
Declaration
Assignment
ClickonPlay!
Changingvariables
Watchingforapossiblegotchawhenusingpublicvariables
Whatisamethod?
Usingtheterm"method"insteadof"function"
Methodnamesaresubstitutes,too
Introducingtheclass
Inheritance
TheStart(),Update(),andAwake()methodsandtheexecutionorder
Componentsthatcommunicateusingdotsyntax
What'swiththedots?
Makingdecisionsincode
UsingtheNOToperatortochangethecondition
Checkingmanyconditionsinanifstatement
Usingelseiftomakecomplexdecisions
Makingdecisionsbasedonuserinput
Paperandpencilarepowerfultools
Summary
3.GettingintotheDetailsofVariables
WritingC#statementsproperly
UnderstandingcomponentpropertiesinUnity'sInspector
Variablesbecomecomponentproperties
Unitychangesscriptandvariablenamesslightly
Changingaproperty'svalueintheInspectorpanel
DisplayingpublicvariablesintheInspectorpanel
Privatevariables
Namingyourvariablesproperly
Beginningvariablenameswithlowercase
Usingmultiwordvariablenames
Declaringavariableanditstype
Themostcommonbuilt-invariabletypes
Assigningvalueswhiledeclaringavariable
Whereyoudeclareavariableisimportant
Variablescope–determiningwhereavariablecanbeused
Summary
4.GettingintotheDetailsofMethods
Usingmethodsinascript
Namingmethodsproperly
Beginningmethodnameswithanuppercaseletter
Usingmultiwordnamesforamethod
Parenthesesarepartofthemethod'sname

Definingamethodtherightway
Theminimumrequirementsfordefiningamethod
Understandingparentheses–whyaretheythere?
Specifyingamethod'sparameters
Howmanyparameterscanamethodhave?
Returningavaluefromamethod
Returningthevalue
Example
Summary
5.Lists,Arrays,andDictionaries
Whatisanarray?
Declaringanarray
StoringitemsintheList
CommonoperationswithLists
List<T>versusarrays
RetrievingthedatafromtheArrayorList<T>
Checkingthesize
ArrayList
Dictionaries
Accessingvalues
HowdoIknowwhat'sinsidemyHashtable?
Summary
6.Loops
Introductiontoloops
Theforeachloop
Theforloop
Anexample
Thewhileloop
whileversusforloops
Loopsinstatements
Modulo
Searchingfordatainsideanarray
Breakingtheloop
Summary
7.Object,aContainerwithVariablesandMethods
Workingwithobjectsisaclassact
Fewfacts
Example
Instantiatinganobject
Boredyet?
Usingmethodswithobjects
Customconstructors
Overloading
Summary
8.Let'sMakeaGame!–FromIdeatoDevelopment
剩余1088页未读,继续阅读











安全验证
文档复制为VIP权益,开通VIP直接复制

评论0