Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Getting Started with Unity 5
  • Table Of Contents Toc
  • Feedback & Rating feedback
Getting Started with Unity 5

Getting Started with Unity 5

By : Dr. Edward Lavieri Jr.
2.9 (27)
close
close
Getting Started with Unity 5

Getting Started with Unity 5

2.9 (27)
By: Dr. Edward Lavieri Jr.

Overview of this book

If you are a game developer interested in learning Unity 3D from scratch and becoming familiar with its core features, then this book is for you. No prior knowledge of Unity 3D is required.
Table of Contents (10 chapters)
close
close

Chapter 5. Scripting the Game

Our game is really taking shape. So far, we've completed the game design, game environment, player character, non-player characters, and animations. That is a lot of work for just four chapters. There are a few things we need to accomplish in order to complete our game. First on this list is scripting the game.

In this chapter, we will write scripts for:

  • Managing the amount of water and corn that Colt collects
  • Monitoring how much water and corn each farm animal is given
  • Managing when a piglet becomes a pig and when a baby chick becomes an adult chicken
  • Managing when pigs and chickens reach blue ribbon status

Before we dive right into scripting, I'll provide a C# programming primer for those that need it. We'll also review how scripting is accomplished in Unity, where to find scripts, and how to use MonoDevelop.

After reading this chapter, you will:

  • Understand the fundamentals of C#
  • Be able to use MonoDevelop to create and edit scripts
  • Be able...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Getting Started with Unity 5
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon