private IEnumerator AddEdge(Collision collision) { IWaypoint target = collision.transform.parent.GetComponent <WaypointController>().waypoint; yield return(missionRef.AddEdge(source, target)); GameObject.Destroy(this.gameObject); }