public void ArriveOn(Transform targetTrans) { if (!behaviours.Contains(Arrive.GetInstance())) { behaviours.Add(Arrive.GetInstance()); } TargetTrans = targetTrans; }
public void ArriveOn(Vector3 targetPos) { if (!behaviours.Contains(Arrive.GetInstance())) { behaviours.Add(Arrive.GetInstance()); } TargetTrans = null; TargetPos = targetPos; }
public void ArriveOff() { behaviours.Remove(Arrive.GetInstance()); }