public void GoToFinish(List <mapPoint> road) { foreach (mapPoint point in road) { if (roundMove > 0) { if (GameManage.Instance.mapPoints[point.x][point.y].vaule == 1) { return; } SetPosition(point.x, point.y); this.point = new mapPoint(point); transform.LookAt(GameManage.Instance.groundList[point.x][point.y].transform); transform.localPosition = Vector3.zero; if (!AI.IsAttack) { if (AI.Find()) { AI.Attack(); } } roundMove--; } } }