//give me Graph public static bool GetGraph(XZPosInt pos, AgentProperties properties, out Graph graph) { Init(); lock (_chunkData) { GeneralXZData key = new GeneralXZData(pos, properties); if (_chunkData.TryGetValue(key, out graph)) { return(true); } else { if (AreTemplateInProcess(pos, properties) == false) { QueueNavMeshTemplateToPopulation(pos, properties); } return(false); } } }
public NavMeshTemplateDestruction(GeneralXZData data, bool queueNewGraphAfter) { this.data = data; this.queueNewGraphAfter = queueNewGraphAfter; }