void Update() { Vector3Int?coordinate = map.MouseToCoordinateInt(); if (coordinate != null && brush != null) { brush.DrawPreview(map, coordinate.GetValueOrDefault(), brushPrefab); } }