Skip to content

Enemies

Sorra edited this page Apr 25, 2024 · 2 revisions

This document introduces how to create and manage enemies.

Create an Enemy

  • Open the Assets/_Dev/Scenes Dev/Enemy Dev scene
  • Ensure all enemies in the scene are disabled
  • Create a new Empty object in the scene
  • Set the Layer to Enemy
  • Create an empty object as a child and position it to act as the enemies sensors, rename it "Sensor"
  • Add a model as a child and position it correctly
  • Add a Basic Enemy Controller or a subclass
  • Add a Basic Health Manager
  • Add an Audio Source
  • Add an Enemy Juicer
  • Add a Pooled Object

Now we will setup the model

  • Add an appropriate collider
  • Add a Basic Damage Handler
  • Add a Simple Surface

Configure each of these components, each field should have a Tooltip

Create a prefab

Clone this wiki locally