public void AddObjectPoint(ObjectPoint objectPoint) { // Create an unique id. float a = objectPoint.position.x + objectPoint.position.y; float b = objectPoint.position.z + objectPoint.position.y; double id = 0.5 * (a + b) * (a + b + 1) + b; if (!ObjectPoints.ContainsKey(id)) { ObjectPoints.Add(id, objectPoint); } else { Debug.LogError($"An ResourcePoint with the same id: `{id}` already exists."); } }
public void AddObjectPoint(ObjectPoint objectPoint) { Debug.Log("Not implemented"); }