コード例 #1
0
 public void SeekOn(Transform targetTrans)
 {
     if (!behaviours.Contains(Seek.GetInstance()))
     {
         behaviours.Add(Seek.GetInstance());
     }
     TargetTrans = targetTrans;
 }
コード例 #2
0
 public void SeekOn(Vector3 targetPos)
 {
     if (!behaviours.Contains(Seek.GetInstance()))
     {
         behaviours.Add(Seek.GetInstance());
     }
     TargetTrans = null;
     TargetPos   = targetPos;
 }
コード例 #3
0
 public void SeekOff()
 {
     behaviours.Remove(Seek.GetInstance());
 }