void AddVector3(Vector3 point, Square.Status state) { if (point.Equals(Vector3.zero)) { return; } mp.PlacePointAtOffset(point); matrix.AddPointToSquares(point, state); }
public void AddPointToSquares(Vector3 point, Square.Status state) { string key = Vector3ToString(point); if (_squares.ContainsKey(key)) { return; } Square square = new Square(); square._status = state; square.AddPoint(point, state); square.center = RoundVector3(point); _squares.Add(key, square); }