private void OnDrawGizmos() { if (!_debugMode) { return; } _physics.DebugDrawChunks(); foreach (var unit in _units) { if (unit == null) { continue; } if (!unit.IsSimulated) { Gizmos.DrawCube(unit.Position, Vector3.one); continue; } Gizmos.DrawSphere(unit.Position, unit.Size / 2f); } }