//ルート設定・物体リスト public void setTargetRoot(List <Transform> objList) { targetList.Clear(); targetIndex = 0; targetList = objList; chaseType = CHASE_TYPE.ROOT; }
//ターゲット設定・位置 public void setTarget(Vector3 pos) { targetPosList.Clear(); targetPosList.Add(pos); targetIndex = 0; chaseType = CHASE_TYPE.POS; }
//ターゲット設定・位置リスト public void setTarget(List <Vector3> pos) { targetPosList.Clear(); targetPosList = pos; targetIndex = 0; chaseType = CHASE_TYPE.POS; }
//ターゲット設定・物体 public void setTarget(Transform obj) { targetList.Clear(); targetIndex = 0; targetList.Add(obj); chaseType = CHASE_TYPE.OBJ; }
private void finishWalk() { chaseType = CHASE_TYPE.NONE; anime.inputAxis = Vector3.zero; targetList.Clear(); targetPosList.Clear(); this.enabled = false; targetIndex = 0; }
//ルート設定・位置リスト public void setTargetRoot(List <Vector3> pos) { targetPosList = pos; targetIndex = 0; chaseType = CHASE_TYPE.ROOT; }