public void Recycle() { var bld = builder; Pool <RetainedGizmos.Builder> .Recycle(ref bld); builder = null; debugData = null; }
public void Init(NavSystem active, RetainedGizmos.Hasher hasher, RetainedGizmos gizmos) { if (active != null) { debugData = active.debugHandler; debugPathID = active.debugPathID; debugFloor = active.debugFloor; debugRoof = active.debugRoof; showSearchTree = active.showSearchTree && debugData != null; } this.gizmos = gizmos; this.hasher = hasher; builder = Pool <RetainedGizmos.Builder> .Allocate(); }