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