public void Triangulate(XZPosInt pos, AgentProperties properties, ref GraphCombiner combiner, NavMeshTemplateRecast template) { this.pos = pos; this.properties = properties; this.combiner = combiner; //Debug.Log(chunk == null); //Debug.Log(properties == null); MakeConnections(template); #if UNITY_EDITOR if (Debuger_K.doDebug && Debuger_K.debugOnlyNavMesh == false) { DebugDataSets(pos, properties); } #endif GenerateCells(); }
public void Triangulate(XZPosInt pos, AgentProperties properties, ref GraphCombiner combiner, NavMeshTemplateCreation template) { #if UNITY_EDITOR //for debug this.pos = pos; this.properties = properties; #endif this.combiner = combiner; //Debug.Log(chunk == null); //Debug.Log(properties == null); if (profiler != null) { profiler.AddLog("Start make connections"); } MakeConnections(template); if (profiler != null) { profiler.AddLog("End make connections"); } #if UNITY_EDITOR if (Debuger_K.doDebug && Debuger_K.debugOnlyNavMesh == false) { DebugDataSets(pos, properties); } #endif if (profiler != null) { profiler.AddLog("Start Generate Cells"); } GenerateCells(); if (profiler != null) { profiler.AddLog("End Generate Cells"); } }