private void RemoveRange(RangeWayPoint wayPoint) { Vector3Int[] bound = wayPoint.Bound(); for (int i = 0; i < bound.Length; i++) { if (positions[bound[i]] == wayPoint) { positions.Remove(bound[i]); } } }
private void AddRange(RangeWayPoint wayPoint) { Vector3Int[] bound = wayPoint.Bound(); for (int i = 0; i < bound.Length; i++) { if (!positions.ContainsKey(bound[i])) { positions.Add(bound[i], wayPoint); } } }