<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />

Navigation

</aside>

🏠 Home Page

Overview

Level Editor

Player

Obstacle

Booster

Gate

Gun

Enemy

Road and Environment

Special Finish

UI Store

💰 Monetization (Ads & IAP)

Enemy is a gameplay element that can shoot back at the player.

Enemy consists of the following components:

  1. Root GameObject:
    1. Enemy Behavior - the main script of the enemy. It is responsible for enemy’s behavior.
    2. Collider - a component responsible for detecting collisions with other gameplay elements on the level.
    3. Health Behavior - a component that manages enemy’s healthbar and it’s health.
    4. Weapons Placement Behavior - a component that helps place a gun in the hands of the enemy.
  2. Character Graphics Behavior - a component responsible for interaction with enemy’s visuals. It’s a bridge between EnemyBehavior Component and the 3d Mesh.
  3. Gun Holder - a game object that works as a parent for the guns. The local position of the gun relative to the Gun Holder is configured by Weapons Placement Helper.
  4. Healthbar - a visual representation of the health of the enemy.

There are two enemies in the game: Enemy Soldier and Enemy Heavy

image.png

image.png

How to add a new enemy