Table of Contents

Class ExpCollector

Namespace
ElectricDrill.AstraHealth.Experience
Assembly
com.electricdrill.astra-health.Runtime.dll

Collects experience when this entity contributes to enemy kills. Subscribes automatically to the global EntityDiedGameEvent configured in IAstraHealthConfig, so no manual event wiring is required. Uses a configurable ExpCollectionStrategySO to determine when and how experience is collected. If no custom strategy is assigned, falls back to the default strategy from IAstraHealthConfig.

public class ExpCollector : MonoBehaviour
Inheritance
object
ExpCollector

Properties

ActiveStrategy

Gets the active experience collection strategy. Returns the custom strategy if assigned, otherwise the default from configuration.

public ExpCollectionStrategySO ActiveStrategy { get; }

Property Value

ExpCollectionStrategySO