Scripting the Gameplay
Protect the gate from zombies using the magical orb and saber with advanced gameplay scripting.
We'll cover the following...
In this lesson, we’ll implement the game logic. The objective is to protect the gate behind the swordsman from the zombies instantiating in front of him.
Note: The gate will have health power of 100, which will be reduced by 10 points on each collision with the enemy.
We’ll stop the enemy by using the magical orb and saber.
Gate creation
To start, we’ll need to create a gate object that will serve as the protective barrier behind the swordsman. Follow these steps to create it:
Create a new cube GameObject and adjust its size so that it overlaps ...