-
Notifications
You must be signed in to change notification settings - Fork 1
Asset Prefabs
Asset prefabs refer to prefabs that use assets to create some visual object in the game such as actual enemies, powerups, debris (excluding UI).

The bunker, or shield, represents a shield that a player can create to protect themselves against projectiles from the enemies.

| Name | Description |
|---|---|
| Health | The number of hits the barrier can take |
| Explosion | The explosion prefab/asset/game object to use when shield destroyed |
| Explosion_scale | Scale of the explosion (size) |
| Destroy Trigger | Forces destruction of shield. For testing |
| Audio Data | Sound for the prefab |
Contains the Particle System and Sound information for an explosion. Changing options here would change the look and sounds of things.

| Name | Description |
|---|---|
| Health | Health for the projectile |
| Explosion | Asset to use when projectile destroyed as explosion |
| Explosion_scale | Size of explosion |
| Destroy Trigger | Force destruction of projectile |
| Enable Fade | Enables fade for the explosion |
| Audio Data | Audio for the explosion |
Simple script that will force the game object to look at the Selected Target Object (Player)

| Name | Description |
|---|---|
| Delay | Delay before shooting |
| Projectile Prefab | Projectile to fire |
| Over Write Speed | Use given speed rather than default |
| Projectile Speed | The speed to use for projectile |
An array of prefabs for enemies to spawn. Also prefabs.

| Name | Description |
|---|---|
| Target | Target to close in on |
| Velocity | Speed of movement toward target |
| Sideways Velocity | Side to side movement velocity |
| Cross Velocity | Velocity for cross movements |
| Distance | Length of distance vector |
The targeting system for enemies.
| Name | Description |
|---|---|
| Target Color | Color for the indicators |
| Need Box Indicator | Whether to use box indicator around enemy |
| Need Arrow Indicator | Whether to use arrow indicator pointing to enemy |
| Need Distance Text | Text showing distance to enemy |
The following contain the important components for debris. The difference between the different asteroids and the satellite are the assets used to render the different prefabs.

Health Destructible - See Enemy - Health Destructible
| Name | Description |
|---|---|
| Velocity | Velocity for movement of object |
| Current Velocity | Initial velocity for the object |
| Name | Description |
|---|---|
| Upper Bound | Maximum for angular velocity |
| Lower Bound | Minimum for angular velocity |
| Rotation Vector | Rotation imparted to object |



The Red Laser and Blue Laser prefabs are similar, with different options depending on what's needed.
From the Volumetric Line Asset, see its documentation - See Laser Projectiles - Volumetric Lines

| Name | Description |
|---|---|
| Speed | The speed of the projectile |

Used internally in Shoot Audio, leave empty without clip or output.
| Name | Description |
|---|---|
| Audio | The Audio Sources |
| Laser clips | The possible sounds to play when shooting. Randomly selected between all options provided |