// Token: 0x060029DD RID: 10717 RVA: 0x001C498C File Offset: 0x001C2B8C public void OnEnterPool() { RetainedGizmos.Builder builder = this.builder; ObjectPool <RetainedGizmos.Builder> .Release(ref builder); this.builder = null; this.debugData = null; }
public void OnEnterPool() { // Will cause pretty much all calls to throw null ref exceptions until Init is called var bld = builder; ObjectPool <RetainedGizmos.Builder> .Release(ref bld); builder = null; debugData = null; }
public void Init(RetainedGizmos.Hasher hasher, RetainedGizmos gizmos) { debugData = PathFindHelper.debugPathData; debugPathID = PathFindHelper.debugPathID; debugMode = AstarPath.active.debugMode; debugFloor = AstarPath.active.debugFloor; debugRoof = AstarPath.active.debugRoof; showSearchTree = AstarPath.active.showSearchTree && debugData != null; this.gizmos = gizmos; this.hasher = hasher; builder = ObjectPool <RetainedGizmos.Builder> .Claim(); }
public void Init(AstarPath active, RetainedGizmos.Hasher hasher, RetainedGizmos gizmos) { this.debugData = active.debugPathData; this.debugPathID = active.debugPathID; this.debugMode = active.debugMode; this.debugFloor = active.debugFloor; this.debugRoof = active.debugRoof; this.gizmos = gizmos; this.hasher = hasher; this.builder = ObjectPool <RetainedGizmos.Builder> .Claim(); this.showSearchTree = (active.showSearchTree && this.debugData != null); }