A class in Root.Township, the global namespace.
Game task asset that counts as done when an object with one of the listed prefab hashes is destroyed.
Constructors
| Member | What it is |
|---|
DestroyHealthObjectTask() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
1 private and internal field
| Member | What it is |
|---|
private List<uint> targetHashes | Prefab hashes that count for this task. |
Properties
| Member | What it is |
|---|
override GameActionChannel Channel { get; } | Listens on the DestroyObject game action channel. |
Methods
| Member | What it is |
|---|
protected override bool IsValid(DestroyActionArgument argument) | True if the destroyed object's prefab hash is in targetHashes. |