Esempio n. 1
0
    public void OnPointerClick(PointerEventData eventData)
    {
        for (int i = 0; i < transform.parent.childCount; i++)
        {
            Destroy(transform.parent.GetChild(i).gameObject);
        }

        traveler.ChangeSpot(spot);
    }
Esempio n. 2
0
    public void GoEnd()
    {
        Spot nowSpot = traveler.nowSpot;

        if (nowSpot.nextRoutes.Count > 0)
        {
            traveler.ChangeSpot(nowSpot.nextRoutes[0]);
        }
        else
        {
        }
    }