コード例 #1
0
        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.");
            }
        }
コード例 #2
0
 public void AddObjectPoint(ObjectPoint objectPoint)
 {
     Debug.Log("Not implemented");
 }