public Placement GetNearestPoint(Vector3 position) { foreach (GameObject place in _places) { Placement placement = place.GetComponent <Placement>(); if (placement.CanBePlaced(position)) { return(placement); } } return(null); }