public void SeekOn(Transform targetTrans) { if (!behaviours.Contains(Seek.GetInstance())) { behaviours.Add(Seek.GetInstance()); } TargetTrans = targetTrans; }
public void SeekOn(Vector3 targetPos) { if (!behaviours.Contains(Seek.GetInstance())) { behaviours.Add(Seek.GetInstance()); } TargetTrans = null; TargetPos = targetPos; }
public void SeekOff() { behaviours.Remove(Seek.GetInstance()); }