public void OnPointerClick(PointerEventData eventData) { for (int i = 0; i < transform.parent.childCount; i++) { Destroy(transform.parent.GetChild(i).gameObject); } traveler.ChangeSpot(spot); }
public void GoEnd() { Spot nowSpot = traveler.nowSpot; if (nowSpot.nextRoutes.Count > 0) { traveler.ChangeSpot(nowSpot.nextRoutes[0]); } else { } }