COVID-19 Support:
We’re providing all users three months of complimentary access to Unity Learn Premium, from March 19 to June 20, 2020.
Just log in to start learning.

Write your own spawn function

Tutorial
Beginner
30 Mins
Overview
Summary
In this tutorial, you’ll:
  • Write a function to spawn health potions in a more efficient way
  • Check your code in Unity Editor
  • Learn about scope, and how to access information in different scripts
When you’ve done this, you’ll be ready to think about organizing scripts at a higher level.
Recommended Unity versions
2019.2
Industry
Language
English
Tutorial
Write your own spawn function
46
Write your own spawn function