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 Creating E-Learning Games with Unity
  • Table Of Contents Toc
Creating E-Learning Games with Unity

Creating E-Learning Games with Unity

By : David Horachek
4.4 (10)
close
close
Creating E-Learning Games with Unity

Creating E-Learning Games with Unity

4.4 (10)
By: David Horachek

Overview of this book

Table of Contents (17 chapters)
close
close
Creating E-Learning Games with Unity
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1
Index

Implementing a system to connect object references


Level 1 signals level 2 to load when the Level 1 completes pop up's Next button is pressed; it signals for the _level1 GameObject to be destroyed and the _level2 GameObject to be loaded from the LEVEL2 scene file. We must refactor the start-up logic of _level2 so that we can find and connect some object references to GameObjects in the _global hierarchy.

  1. Create a new script named Level2Extras, and attach an instance of it to the _level2 GameObject. This script will be used to directly access certain GameObjects inside _level2 for enabling and disabling.

  2. Give the Level2Extras script the following three public GameObject references; these are the assorted GameObjects that this script will be in charge of activating:

    public GameObject raceStartup;
    public GameObject setupLevel2;
    public GameObject LevelLogicObj;
    
  3. Drag-and-drop the LevelLogicObj object from the _level2 GameObject hierarchy into the LevelLogicObj reference of the Level2Extras script...

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.
Creating E-Learning Games with Unity
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