public void RemoveShape(ShapeRenderType renderType, int entityUid) { #if !UNITY_EDITOR return; #endif if (shapeDict.ContainsKey(renderType) && shapeDict[renderType].ContainsKey(entityUid)) { shapeDict[renderType].Remove(entityUid); } }
public void AddShape(ShapeRenderType renderType, int entityUid, Shape shape) { #if !UNITY_EDITOR return; #endif if (!shapeDict.ContainsKey(renderType)) { shapeDict.Add(renderType, new Dictionary <int, Shape>()); } if (!shapeDict[renderType].ContainsKey(entityUid)) { shapeDict[renderType].Add(entityUid, shape); } else { shapeDict[renderType][entityUid] = shape; } }