ZoneAnalyticsTriggerEvent
A class in Root.Township, ATT.Triggers.
Zone trigger event asset that sends an "Area Exited" analytics event with how long the player was in the zone.
- Listed in ATT, Features and other game namespaces
- Inherits or implements
ZoneEvent - Attributes
CreateAssetMenu
Constructors
| Member | What it is |
|---|---|
ZoneAnalyticsTriggerEvent() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
1 private and internal field
| Member | What it is |
|---|---|
private IAnalyticsService analyticsService | Analytics service set by Inject. |
Methods
| Member | What it is |
|---|---|
void Inject(IAnalyticsService analyticsService) | Receives the analytics service by dependency injection. |
override void Trigger(ITriggerEventData eventData, int durationInSeconds) | Sends the area exited analytics event with the trigger data and duration in seconds. |
Used in
Members of other types that take, return or hold a ZoneAnalyticsTriggerEvent: