private void PlaceEnd() { Road road = IsTargetingRoadEnd(); if (road) { if (Input.GetMouseButtonDown(0)) { GameObject end = Instantiate(_EndBP); if (!road.ConnectEnd(end, road.GetClickedRoadEnd(Camera.main.ScreenToWorldPoint(_CurrentMousePos)))) { Destroy(end); } } if (Input.GetMouseButtonDown(1)) { road.RemoveEnd(road.GetClickedRoadEnd(Camera.main.ScreenToWorldPoint(_CurrentMousePos))); } } }