objective: just a brief recap of my Game logic course framework.

This is a first-person shooter, that has AI robots run across the screen and you have to shoot them down.

it features: navmesh, spawning, on trigger collisions, waypoints, enums, and singletons.

The first challenge was to create a navmesh and start and endpoints to run to.

the second challenge was to move the AI and create a spawnmanager.

--

--

objective: describe how to use a singleton is Unity.

Here I have a singleton that displays my name in the console. A simple demonstration, but why use singletons. A singleton setup correctly will allow script communication in my opinion to be a simpler and cleaner process. A singleton is a class that allows you to get and set properties within.

Set up two scripts named click and player.

--

--

objective: to generate an offmesh link for our AI. Basically, jumping from one floor to another.

Our AI jumping from one floor to another. This is easy to do, and we can do it without coding.

First make another floor to hover on its own. Then make another waypoint on the new floor.

--

--

objective: This time we are going to take the AI setup in the previous article and setup a sphere to randomly move to one of the cubes with a Navmesh.

The sphere AI actually moves randomly to one of the cubes. So how is this done?

First setup the scene with sphere, floors, and cubes like in the video. Then attach a C# script to the sphere.

--

--