Skip to main content

DestroyHealthObjectTask

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​

MemberWhat it is
DestroyHealthObjectTask()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private List<uint> targetHashesPrefab hashes that count for this task.

Properties​

MemberWhat it is
override GameActionChannel Channel { get; }Listens on the DestroyObject game action channel.

Methods​

MemberWhat it is
protected override bool IsValid(DestroyActionArgument argument)True if the destroyed object's prefab hash is in targetHashes.