Skip to content

This is a collection of code that can be used for reference.

Notifications You must be signed in to change notification settings

PhilipLawson/UnityExampleCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

UnityExampleCode

This is a collection of code that can be used for reference. Created in Unity 2020.2.6f1. I've tried to keep the scenes very simple and to the point in order not to confuse the topic at hand.

::Steps::

  1. Clone repo
  2. Open Unity Hub -> Add -> Navigate to /UnityExampleCode/UnityExamples
  3. Open any of the scenes and checkout the code.

::Examples::

Collect a Coin Collect an object example - collisions, text updating and user input.

Countdown clock A timer which will count down from the user set value while updating text.

Shoot Projectiles Spawning a prefab at runtime and adding velocity to it. Also has a timed Destroy script.

Arrays Storing a collection of GameObjects in an array and learing how to cycle through them - in this case, displaying their names.

About

This is a collection of code that can be used for reference.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published