public override void StartUsing(GameObject usingObject) { base.StartUsing(usingObject); if (controller == null) { controller = ReferenceManager.instance.leftController; } if (roadGenerator == null) { roadGenerator = ReferenceManager.instance.roadGenerator; } Physics.Raycast(controller.transform.position, controller.transform.forward, out hit, 100.0f); if (hit.transform.gameObject.tag == "road") { Vector3 rounded = Round(hit.point); roadGenerator.RemoveRoad(rounded); roadGenerator.RedrawLocalRoads(rounded); } }