private void CreateMapGrid(Vector3 mouseWorldPosition) { Vector2 point = _mapDrawer.GetPoint(mouseWorldPosition); if (!_mapGridDict.ContainsKey(point)) { GameObject go = GameObject.Instantiate(_mapDrawer.Go); MapGrid mapGrid = go.AddComponent <MapGrid>(); go.transform.position = _mapDrawer.Point2Position(point); _mapGridDict.Add(point, mapGrid); } }