Table of Contents

Method FindFirstItem

Namespace
GrindFest
Assembly
GrindFest.dll

FindFirstItem(Predicate<ItemBehaviour>)

Zero-allocation method to find the first item matching a predicate. Returns the first matching item or null if none found.

public ItemBehaviour FindFirstItem(Predicate<ItemBehaviour> predicate)

Parameters

predicate Predicate<ItemBehaviour>

Predicate to test each item

Returns

ItemBehaviour

First matching item or null