示例#1
0
 // 최단경로를 화면상에 애니메이션으로 표시하는 함수
 private IEnumerator RouteAnim()
 {
     for (int i = routeList.Count - 1; i >= 0; i--)
     {
         Vector3 pos = routeList[i].position;
         Instantiate(ring, pos, Quaternion.identity, rings.transform);
         pos.z = -10;
         pos   = camMove.ChangeToMaxPos(pos);
         camMove.transform.position = pos;
         yield return(new WaitForSeconds(0.33f));
     }
 }