Class EnergyPickup
Simple energy element which can spawn in the world which Microbes can walk into to pick up.
Inherited Members
Namespace: KaijuSolutions.Agents.Exercises.Microbes
Syntax
public class EnergyPickup : KaijuBehaviour
Properties
All
All energies currently in the world.
Declaration
public static IReadOnlyCollection<EnergyPickup> All { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyCollection<EnergyPickup> |
Methods
Spawn(EnergyPickup, Vector2)
Spawn an energy.
Declaration
public static void Spawn(EnergyPickup energyPrefab, Vector2 position)
Parameters
| Type | Name | Description |
|---|---|---|
| EnergyPickup | energyPrefab | The prefab to spawn. |
| Vector2 | position | The position to spawn the energy pickup at. |